The form is not submitted when there are fields consisting only of 0's
Environment
- Red Hat 3scale API Management Platform SaaS
- Developer Portal
Issue
- If any of the fields in the form in the developer portal consists only of '0' values (for example, "000" for the credit card CVV number), the form fails to submit, and no error is shown.
Resolution
The issue is due to the JavaScript validation used in the Developer Portal. This was fixed for all new 3scale SaaS accounts created after August 2, 2017, and the values consisting of only 0's are now accepted.
In the accounts created prior to that this can be fixed manually by making the following change in the /javascripts/3scale.js file in the Developer Portal CMS:
Find the line:
if (valueToCheck == !!nonBlank) {
and change it to:
if (!!valueToCheck == !!nonBlank) {
SBR
Product(s)
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.