We have consumer and business services, which customers can sign up for via a web form with the follow fields.
Full Name: Business Name: Email Address: Phone Number:
Is there a way to determine required fields by checking a radio button?
I would like to have Consumer and Business radio buttons. If you select the Consumer radio button, the Business Name field is not required but the rest of the fields are required. However, if you select the Business radio button than all fields are required including the Business Name.
Thanks!
You have 2 issues to deal with:
For #1, you need to use JavaScript to manipulate the HTML page dynamically.
jQuery is a relatively easy way to do this.
For example:
For #2, you need a server-side script that can perform conditional field enforcement.
Tectite FormMail is one such script, using the "conditions" feature.
For example: