Override required field
-
Hai,
i try to override required field on ‘wpforms_process_before’ that was set on editor. Try with this codefunction wpf_dev_process_before($entry, $form_data) { if (absint($form_data['id']) !== 4115) { return; } // try to set some value to override required $entry['fields'][18] = "sdff"; //or also try to unset required , still not working unset($form_data['fields'][18]['required']); return $entry; } add_action('wpforms_process_before', 'wpf_dev_process_before', 10, 2);
but field id 18 still required when form sumbitted. Is there any way to override required fields that was set on editor?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Override required field’ is closed to new replies.