Page 1 of 1

Validate Multi line Rich Text

Posted: 02 Nov 2016
by Christy
How can I tell if a multi line rich text field is empty. Neither of these worked:



if (fd.field('NatureOfChange').value() == '<p></p>')

or

if (fd.field('NatureOfChange').value() == '"")

Re: Validate Multi line Rich Text

Posted: 03 Nov 2016
by munmon
Hi! Use this code, please:

Code: Select all

 if(!fd.field('Rich').control()._el().find('div.ms-rtestate-write').text().replace(/\W/g, ''))
{/* your code if field is empty*/ };

Re: Validate Multi line Rich Text

Posted: 28 Nov 2016
by YuriyMedvedev
Anything on this? I having the same issue.