Presets of form fields


When creating forms in todo4teams  you can not enter default values for the form fields.
That is, when a form is selected during the creation of a new ticket, all input fields are initially empty.

If you want to support the user by predefining certain fields with values, please use the "Activate action" of the form. This script runs when a user sets the check mark to add a form to a ticket:

activateform.png

In the form "SMS Versenden" selected here there is a field "Rufnummer", which in this example is to be preset with the value "01705552555".

To do this use the form's "Activate action" script:

Bildschirmfoto vom 2016-12-08 14-07-59.png

This function puts the call number into the form:

  
formPanel.setFormValue(
 form,
 form.getMetaAttributeByName("Rufnummer"),
"01705552555"
);

The script uses the environment variables formPanel and form, as described here.
If a user now selects the form the call number is preset as required:

form.png

     

Child Pages