Page 1 of 1

Read Yes/No Field value in Display Form

Posted: 11 May 2017
by gregory.murillo
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.

Re: Read Yes/No Field value in Display Form

Posted: 12 May 2017
by Dmitry Kozlov
Hi,
The correct syntax is:

Code: Select all

if (fd.field('YesNoFieldName').value() == 'No') { ... }