Form Options Binder

Steps to use the Plugin Template - Form Options Binder:

1. Create a new Form called Country Categories from which the country select boxes of forms will populate its selections from. (See Figure 1)

Figure 1: Fill up Form Details of Country Categories

2. Drag a text field into the Country Categories form, label it as Country, and make it a mandatory field.

3. Save the new form and click on Generate App to generate a CRUD for it.

4. Launch the userview, go to "Manage Country Categories" and create a few country records. (See Figure 2)

Figure 2: Create New records for Country Categories

5. Create a new template again on the Plugin Template Management Page by clicking the "New" button. (See Figure 3)

Figure 3: Create a new Plugin Template

6. 3. Fill up the Plugin Template Management Page accordingly and for the "Plugin" field choose any one of the formatter under Form Options BinderThe Default Form Options Binder is chosen for the Plugin field in this Demo App. (See Figure 4)

Figure 4: Fill up the Plugin Template details

7. Configure the Default Form Options Binder plugin by clicking the "Configure Plugin" button. Select the Country Categories form as the source form, point to the correct form field to represent the labels for each of the options values, and click the "Submit" button to save the configuration. (See Figure 5)

Figure 5: Configure Plugin (Default Form options Binder) for the Plugin Template

8. Save the Plugin Template by clicking the "Save" button. 

9. Enter the Design View of the Plugin Template Form and click on the edit icon of the Country select box to edit its properties.

10. In Edit Select Boxfor the Or Choose Options Binder property, select Plugin Template - Options Binder. (See Figure 6)

Figure 6: Choose Plugin Template - Options Binder for the "Or Choose Options Binder" field

11. Navigate to Or Choose Options Binder (Plugin Template - Options Binder), select the Option binder template created, and click the "OK" button. (See Figure 7)

Figure 7: Select the created Plugin Template

12. Save the form and preview the form to check the results. (See Figure 8)

Figure 8: Check results





  • No labels