How to check Rich Text control empty

  • 26 November 2018
  • 4 replies
  • 4 views

Hi All,

 

I have a requirement where I need to check if my rich text box is empty or not. How to check that? I guess due to its html elements advance condition is not working. 

 

Regards,

Madhu


4 replies

Badge +12

Hi Madu, 


 


Thank you for posting this. You can have a look at the following community article based on this. There are two options posted in this case here. 


 


https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/Set-Rich-Text-Box-to-Empty/td-p/96600


 


Kind regards, 


 


Percy

Hi Percy,

 

Thanks for your reply but what I was looking for is just the opposite of it. The article says how to make rich text control empty. But I want to check whether it is empty or not so that I can give a validation message on rich text control being empty. 

 

Regards,

Madhu

Hi Sello,

 

I tried the same way but someone it doesnt go inside the advance condition. I was under the impression that it is because of the default html tags that is populated even when the rich textbox is empty. 

 

Are you using K2 FIVE? I am using K2 4.6.11 and I wanted to know if it is somethin that is added in K2 FIVE

 

 

Regards,

Madhu

Userlevel 6
Badge +16

Hi,


 


Did you try with simple comparison (a control does not contain a value)?

Reply