Dismiss Notice

Register now to be one of the first members of this SharePoint Community! Click here it just takes seconds!

Dismiss Notice
Welcome Guest from Country Flag

New Item Entry Fields Return Undefined

Discussion in 'SharePoint Blogs' started by /u/Pepsibojangles, Apr 5, 2017.

Thread Status:
Not open for further replies.
  1. /u/Pepsibojangles

    /u/Pepsibojangles Guest

    Blog Posts:
    Hey All,

    I am writing some custom java script in which I need to pull values from a "New Item" Form for a list I have. I am accessing these java script elements with

    var myVariable = document.forms["myForm"].getElementsByClassName("myClass")[0];

    The tricky thing is while these elements totally exist, they are returning "undefined" and if I inspect these elements in the console debugger, then the will return their value. Has anybody ever ran into a similar problem? I have been slamming my head against it for the last day and any guidance would be much appreciated. Thanks

    submitted by /u/Pepsibojangles
    [link] [comments]

    Continue reading...
Thread Status:
Not open for further replies.

Share This Page

LiveZilla Live Chat Software