Creator Help

Sample Applications

1) The sample application below calculates the amount based on the values entered by the user :

Compute Rate on User Input is an application with Rate, Hour and Amount fields. If you enter a value to the Rate/Hour field, the Amount field should be calculated without hitting submit. 

To achieve this, add the following script to Field Options -> On User Input of the Rate field:

if (input.hours != null) 

input.amount = (input.rate * input.hours); 
}

and, add the following script to Field Options -> On User Input of the Hour field:

if (input.rate != null) 

input.amount = (input.rate * input.hours); 
}

The amount field executes the code as soon as the rate and hour fields are filled by the user 

2) The sample application below gives an alert message when the user selects an option :

Go to https://creator.zoho.com/sampleapps/script-actions/#Form:On_User_Input and click on any option from the list. You will see the option itself as the alert message. Below code was written in the On User Input section of the field to achieve it.

if (input.Choose_any_option != ”") { alert(input.Choose_any_option); }

Top