NO BUG: Disabled form field will not be submitted

Hi,

I don’t know if this is a bug, but using bricks form, I disabled a text input field using jQuery as this will only show the calculated price. However, upon form submission, the disabled field is not included in the array retrieved by get_fields().

The resulting input field after adding the disabled attribute would be:

<input id="form-field-c1a7a7" name="total" spellcheck="false" type="text" value="150.00" disabled="">

Of course, there is a work around to add a second hidden field, but that would be inefficient.

1 Like

Hi,
Thanks so much for your report!

That disabled input fields are not submitted seems to be the standard:

Best regards,
timmse