Page 1 of 1
Form fields values
Posted: 05 Nov 2014
by Андрей Тарутин
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.
Re: Form fields values
Posted: 06 Nov 2014
by Dmitry Kozlov
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.
Re: Form fields values
Posted: 06 Nov 2014
by Андрей Тарутин
Yes, that was the case. Thank you kindly!