Setting Default Value For A Field

If you feel that values for a field should definitely be filled with some value even if the user does not specify anything, you can specify a default value for the field.

To set default value for a field, while adding a field:

  1. Drag and drop the required field to the form.
  2. Specify the initial value for the field in the Initial value text box. The value specified must be compatible with the field data type. For example, the initial value specified for an Email field type, must be an email id.

To set default value for an existing field:

  1. Select the Form from the Dashboard in Edit mode.
  2. Select the Field to be edited.
  3. In the Field Properties, specify the initial value for the field in the Initial Value text box.The value specified must be compatible with the field data type. For example, the initial value specified for an Email field type, must be an email id.

To set default value via script:

You can use this option to set up dynamic values to fields. Setting today's date for a Date field, current time for a Date-Time field, logged in user's email for Email field are some examples.

This can also be used for the fields where you see the "Initial Value" option missing.

  1. Go to On Add -> On Load script section of the Form.
  2. Drag and drop the Set Variable task.
  3. Choose your field name for the variable and give a (dynamic) value in the text area.