Form fields values

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Андрей Тарутин
Posts: 13
Joined: Mon Aug 25, 2014

05 Nov 2014

I have completely read the article about getting and setting fields values here. But, unfortunately it doesn't work for me whatever I did. The forms designer variable fd is defined but every try to get field value leads to the undefined result (even getting Title value - fd.field('Title').value()).
Is there anything I can do to let forms designer work? Thanks.

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

06 Nov 2014

Hi Andrew,

Please, note that the value function doesn't work on a display form because it gets the values from field controls that don't exist on a display form or when fields are rendered in read-only mode. Please, use the following code instead to get text representation of the value of a read-only field:

Code: Select all

fd.field('FieldName').control()._el().text()
Please, confirm that that was the case.

User avatar
Андрей Тарутин
Posts: 13
Joined: Mon Aug 25, 2014

06 Nov 2014

Yes, that was the case. Thank you kindly!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests