By default, both the 'Add new' and 'Delete' buttons will be displayed. However, a workflow can be used to show or hide the buttons. Using a workflow you can set conditions and display the buttons to the user. The button is displayed in the subform only when the condition evaluates to true.
Under the subform actions there are four different options:
Let's assume that a company is collecting the information of its employees and the vehicles they own. The form has a field for the employee name, email and number of vehicles. If they have vehicles then the employee should enter their details which is present as a subform. The company wants to design the form in such a way that the employees with no vehicles need not fill the fields in the subform. This can be achieved by creating a workflow which runs the 'Hide subform add entry' action on the condition that number of vehicles is zero. When the employees enter '0' in the 'No. of vehicles' field then the 'Add new' button will be hidden. They can then proceed to submit the form. Assume that the company does not want the employees to delete the entries which they entered in the 'Vehicle details'. This can be achieved by creating a workflow which runs the 'Hide subform delete entry' action with the always condition. This will remove the delete button for all employees. Similarly the company can use the other options based on the necessary criteria.
Note: There are differences between the show/hide options that are available in the forms and the subforms. The show/hide option in the form focuses on whether to display a field present in a form. While the show/hide option in the subform focuses on whether to allow the user to add or delete new entries to the subform.
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.