Hey,
I’m currently coding a form for my website, but wonder if there is anyway to change a fields mandatory state? Thanks in advance,
Karl
Hey,
I’m currently coding a form for my website, but wonder if there is anyway to change a fields mandatory state? Thanks in advance,
Karl
Hey
What do you mean? You want to change an input text field state to disabled / enabled and so on?
My situation is: I want to build a marketplace website where users can sell their clothes. The form where sellers can post their items has a payment section, where the user can choose between PayPal and card payments with radiobuttons.
But the user can also enter a gift card code, which in this case would disable and hide the payment section. But when the radiobuttons are disabled, they are still mandatory. How do I make them “un-mandatory” so that the user can submit the form?
Problem solved by myself, thank you ![]()
Hi, can you please help me and tell me how did you solve this problem?
Please add your own issue into a new post instead of bumping up an old post. Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines .
This is an old post and is being closed.