Ticket #1272 (new defect)

Opened 18 months ago

Last modified 8 weeks ago

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

Changed 18 months ago by ischommer

see r37225

Changed 13 months ago by sminnee

  • owner changed from sminnee to ischommer
  • harvest_task set to (Unknown)
  • invoice_sent set to 0
  • milestone set to 2.2.1

Version 2.2.1 will be a good place to deal with niggly little issues like this.

Changed 11 months ago by ischommer

  • owner changed from ischommer to aoneil

Changed 10 months ago by ischommer

  • keywords risky added

Changed 10 months ago by sminnee

  • milestone changed from 2.2.2 feature-lock to 2.2.3 feature-lock

Changed 2 months ago by sminnee

  • milestone changed from 2.2.3* to 2.4.0

JS validation revamp is happening in 2.4.

Changed 8 weeks ago by sminnee

  • keywords validation added
Note: See TracTickets for help on using tickets.