Hello!
I am creating a data bound form. The form has a section for personal and business information. All fields in either of the sections are compulsory.
The use case now is that not people will have businesses. Some may be submitting the form to start a business. So I was wondering that if all editable regions are required so how do i get the condition to work.
This is my thought:
But i get stuck at two things:
1. How to get the have_business condition to be checked before submitting the form.
2. All fields are required so if the have_business==0 then how to submit the form.
What can be done.
Regards,
Aashish
I am creating a data bound form. The form has a section for personal and business information. All fields in either of the sections are compulsory.
The use case now is that not people will have businesses. Some may be submitting the form to start a business. So I was wondering that if all editable regions are required so how do i get the condition to work.
This is my thought:
- Code: Select all
<cms:if have_business=='1'>
<!-- Bound part of the form for Business details goes here -->
</cms:if>
But i get stuck at two things:
1. How to get the have_business condition to be checked before submitting the form.
2. All fields are required so if the have_business==0 then how to submit the form.
What can be done.
Regards,
Aashish