How to make a conditional field non-required

By: Roland Jungwirth | Asked: 07/19/2023
ForumsCategory: General questionsHow to make a conditional field non-required
Roland Jungwirth asked 9 months ago
Is it possible to make a required field non mandatory when a condition is met? E.g. A user has to submit their credit card number (Stripe), except if they clicked on a "trial account". In this case, the credit card field is not displayed and should not be mandatory.
Bobby Clapp replied 9 months ago

That may be how it works by default. I don't recall. Have you tried it?

Roland Jungwirth replied 9 months ago

It seems so - I had another hidden field that was actually preventing the form submission. Thank you for confiming.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right