Read Yes/No Field value in Display Form
- gregory.murillo
- Posts: 5
- Joined: Tue Mar 14, 2017
Hello,
I am trying to read a yes/no field value using this: fd.field('YesNoFieldName').control()._el().text() without any success, as it always returns "" (empty)
Should I use a different sentence?
Thank you.
I am trying to read a yes/no field value using this: fd.field('YesNoFieldName').control()._el().text() without any success, as it always returns "" (empty)
Should I use a different sentence?
Thank you.
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
The correct syntax is:
The correct syntax is:
Code: Select all
if (fd.field('YesNoFieldName').value() == 'No') { ... }
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests