#Disabled form elements getting submitted

11 messages · Page 1 of 1 (latest)

oak marsh
#

Hello all,
I wanted to know if there is a way in Mantine form that would not allow the disabled form fields from being submitted when form is submitted?
Like a TextInput, Checkbox component which are in a form component
So if only TextInput is disabled, then on form submission it's value should not be submitted

oak marsh
#

@bleak terrace can you please help me with this?

bleak terrace
oak marsh
bleak terrace
oak marsh
swift tinsel
#

You are probably better off either considering the second form stage you have as a separate form or implementing some filter function to only get the values you need.

oak marsh
oak marsh
#

Hey @bleak terrace and @swift tinsel, do you have any ideas on how can this be made dynamic?

swift tinsel