I want to set conditional content in a Toolset form that is contingent on having content in a WYSIWYG field having content. There appears no way to do this with the simple form settings.
Is it possible to check if a WYSIWYG field called "Reason for Rejection" (reason-for-rejection) is empty?
Hi,
Welcome to Toolset support. It should be possible to check for empty field but you need to make sure that the raw output is used and you need to check the nested " and ' characters are added correctly.
A shortcode like this can be tested:
[wpv-conditional if="('[types field='reason-for-rejection' output='raw'][/types]' eq '')"]
<!-- Content if the field is empty -->
[/wpv-conditional]
This approach checks if the “Reason for Rejection” field (with slug reason-for-rejection) is empty by outputting its raw value. If you experience issues with quotation marks or special characters, consider replacing them with HTML entities as described here:
https://toolset.com/forums/topic/conditional-for-empty-term-meta-wysiwyg/
Thanks.