Disabling required field prevents form submission
-
I disabled a required field as per instructions on the page below but the form fails to submit.
https://wpforms.com/developers/disable-a-form-field-to-prevent-user-input/
So I used programming to unset the “required” array item when setting default values in a form ie
unset($field[‘required’]);
but all this fails. How can I make the form submit with a disabled required field (radio field) that is not selected?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Disabling required field prevents form submission’ is closed to new replies.