Configure Parameters for Input Validation

In the Configure Parameters dialog, you configure the parameters that should be supplied to the Input Validation script when it is run.

You can also enter a value to perform validation against to test the script. Click the Validate button to run the script using the supplied parameters and the supplied value. You may also edit the JavaScript file in this dialog.

You can enter parameter values manually, or use the Select Token link in the gear menu to select a token value. To delete a parameter, select Delete Parameter in the gear menu.

In the Subscriber Options context, you can additionally use the Create Mapping link in the gear menu to configure an option property mapping. When a mapping has been configured, it can be updated using Update Mapping or deleted using Delete Mapping.

In the User Operations context, option property mappings are not applicable; therefore, the Create Mapping, Update Mapping, and Delete Mapping links are not present.

In the Subscriber Options context, the following three parameters are added automatically:

  • value = [CLIENT:<property_name>]
  • current_value = [CURRENT_VALUE:<property_name>]
  • lang = [LOCALE:lang]

The value parameter references the value a user is supplying for this option property. The current_value parameter references the previously supplied value for this option property, in case of subscription modification. The lang parameter references the locale.

In the User Operations context, the following two parameters are added automatically:

  • value = [CLIENT:<property_name>]
  • lang = [LOCALE:lang]

The value parameter references the value a user is supplying for this action parameter input. The lang parameter references the locale.

For more information on tokens, see Select Tokens. For more information on option property mapping, see Select Property to Map to Script Parameter.