Unyson
Unyson copied to clipboard
Shortcode Fields Validation
Is there any tutorials to explain how to validate shortcode fields ?
I'm afraid you have to create your own ajax validator. You can use attr to add class to an option field.
There are no validation tutorials and generally, unyson has no validation methods. The only way is to create your own validator on save post, or on ajaxd request
on save post the options are as an array to extract it use function fw_get_db_post_option($post->ID, 'page-builder'))