Page 1 of 1

Getting the field in javascript

Posted: 14 Oct 2013
by srallen4
I am trying to set the value of a field using Javascript. The field's name is "Job Title".

I use: fd.field('Job Title').control().value("Secretary");

The field does not populate with the value. Maybe the space in the field name is the problem? Please help.

Re: Getting the field in javascript

Posted: 15 Oct 2013
by Dmitry Kozlov
fd.field() method accepts an internal name as a parameter, not a display name. You can find instructions for getting internal names in the following thread:

http://social.msdn.microsoft.com/Forums ... mentlegacy

Re: Getting the field in javascript

Posted: 15 Oct 2013
by srallen4
That worked great. Thanks.