Problem:
can't access select-field value in custom FormValidator hook cred_form_validate
Solution:
You can use following code to validate the Toolset form.
add_filter('cred_form_validate','cred_filetype_size_validation',10,2); function cred_filetype_size_validation($field_data, $form_data){ list($fields,$errors)=$field_data; if ( 9999 == $form_data['id'] ) { echo "<pre>"; print_r($_POST); print_r($fields); exit; } return array($fields,$errors); }
You can find the proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/cant-access-select-field-value-in-custom-formvalidator/#post-1111409
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by 6 years, 2 months ago.
Assisted by: Minesh.