Ticket #1272 (new defect)
JS-Validation for multiple forms
| Reported by: | ischommer | Owned by: | aoneil |
|---|---|---|---|
| Priority: | medium | Milestone: | 2.4.0 |
| Component: | Sapphire Framework | Version: | |
| Severity: | medium effort / impact | Keywords: | risky validation |
| Cc: | Hours: |
Description
If two forms on a page use the same inline javascript validation (e.g. validateEmail()), one of the validations will fail because Requirements::customScript includes them only for the first form. Fix:
// old Requirements::customScript($jsFunc, 'func_validateEmailField'); //new Requirements::customScript($jsFunc, 'func_validateEmailField' . $this->form->FormName());
Please fix for all form-fields
Change History
Note: See
TracTickets for help on using
tickets.
