Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Input Elements of Fields of NewForm.aspx not loaded when script runs

$
0
0

I have a JavaScript that opens a NewForm.aspx child window (upon a button control click) within a list column and I had set up a JQuery $(document).ready() call within the parent script. That was not working, so I inserted this as a code snippet into a Script Editor WP in the NewForm.aspx. That script was acting much the same.

Whatever child window's document is loading for NewForm.aspx, the input elements (retrieved by document.getElementsByTagName("input")) is retrieving input elements on NewForm.aspx that do not have 'id' attribute values which correspond to any of the text fields in the form.

I am thinking that NewForm.aspx must be calling in another window document within an iframe (?) which corresponds to the text fields, but am not sure.

I want to get these text fields to fill values into some of them and to disable input to those fields.

Does anyone know how?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>