Conditionally Require Fields by User Role

The Challenge

Is it possible to make fields required for specific user roles using the frm_validate_field_entry hook?

Formidable Slack Community

Snippet

Yes, it's possible by using the WordPress wp_get_current_user() function. Here's the snippet that shows how.

Reader Interactions

Leave a Reply

Your email address will not be published.