Validate Multi line Rich Text

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Christy
Posts: 1
Joined: Tue Nov 01, 2016

02 Nov 2016

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() == '"")

munmon
Posts: 4
Joined: Tue Nov 01, 2016

03 Nov 2016

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*/ };

YuriyMedvedev
Moderator
Posts: 33
Joined: Wed Sep 21, 2016

28 Nov 2016

Anything on this? I having the same issue.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests