We are developing a Service Catalog form and would like to set the value of a field when users submit the form based on their selections. We need to run the script last thing before the form is submitted so we are trying to call it from the onSubmit attribute of the form. The issue we are encountering is that anytime we call a script from that attribute the form won't continue to the review screen so we can submit it.
Has anyone else encountered this issue in Catalog 12.7 and figured out a solution?
At the of that script do you have something like:
As Duarte mentioned, your onSubmit function must return true as noted in the Administration Guide:
This function must return a Boolean value. If the function returns any value except true, the form is not submitted.
Thank you for the help!
We ended up using a workaround for this situation.
This will be helpful to know in the future when we need to validate values on forms!