A catalog item has a variable of type 'Single Line Text' with a default value. Users report that when they submit the request, the default value is not being used. A catalog client script that runs on submit is setting the variable to empty string. What is the most likely cause?
Trap 1: Variable is mandatory
Mandatory does not affect default value application.
Trap 2: Client script runs after submit cancels default
The script runs during submit, after the default has been applied, so it still overrides it.
Trap 3: Default value is only for display, not submission
Default values are submitted with the request if not changed.
- A
Variable is mandatory
Why wrong: Mandatory does not affect default value application.
- B
Client script runs before default value is applied
On submit, client scripts execute before the default value is set to the variable, so the script can override the default.
- C
Client script runs after submit cancels default
Why wrong: The script runs during submit, after the default has been applied, so it still overrides it.
- D
Default value is only for display, not submission
Why wrong: Default values are submitted with the request if not changed.