Getting the field in javascript

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
srallen4
Posts: 12
Joined: Mon Oct 14, 2013

14 Oct 2013

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.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

15 Oct 2013

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

srallen4
Posts: 12
Joined: Mon Oct 14, 2013

15 Oct 2013

That worked great. Thanks.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests