Form fields values
- Андрей Тарутин
- Posts: 13
- Joined: Mon Aug 25, 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.
Is there anything I can do to let forms designer work? Thanks.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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:
Please, confirm that that was the case.
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()
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests