How can I tackle the issue of limited fields allowed in a form?
Ans: To tackle this issue, you can split your forms. This "Sample Application" demonstrates how to split forms. In this applications, fields have been distributed into 3 forms for the same customer. After submitting Form 1, user is redirected to Form 2 which will automatically fetch customer name from Form 1. Similarly, after submitting Form 2, user is redirected to Form 3 which will also contain the same customer name. In this way data can be submitted for the same customer using 3 different forms to avoid maximum fields limitation for a single form. Form 1has the following fields:
- Name
- Sample field 1
- Sample field 2
- Sample field 3
On-Success script written in Form 1:
openUrl("http://creator.zoho.com/sampleapps/split-forms/#Form:Form2?Customer=" + input.Name,"same window") ;
// redirects to Form 2 after submission
// Customer name in Form 2 is pre-set
Form 2 has the following fields:
- Customer
- Sample field 1
- Sample field 2
- Sample field 3
On-Load script written in Form 2:
disable Customer;
//Customer name cannot be modified
On-Success script written in Form 2:
openUrl("http://creator.zoho.com/sampleapps/split-forms/#Form:Form3?Customer=" + input.Customer,"same window")
// redirects to Form 3 after submission
// Customer name in Form 3 is pre-set
Form 3 has the following fields:
- Customer
- Sample field 1
- Sample field 2
- Sample field 3
On-Load script written in Form 3:
disable Customer;
//Customer name cannot be modified