Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Shortcode Fields Validation

Open rdanusha opened this issue 8 years ago • 2 comments

Is there any tutorials to explain how to validate shortcode fields ?

rdanusha avatar Jun 06 '18 17:06 rdanusha

I'm afraid you have to create your own ajax validator. You can use attr to add class to an option field.

jonmlas avatar Jun 11 '18 16:06 jonmlas

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'))

ViorelEremia avatar Jun 15 '18 15:06 ViorelEremia