|
Title: form validation with parameters Post by: leela on September 18, 2014, 01:30:25 PM Hi,
Is it possible to trigger only a particular validation rule defined on a validatebox? I would defined a custom Validate Rule on some elements of the form. I need to trigger different validation rules for different button clicks. Right now when you say form.form('validate'), it validates all the validation rules defined on all the form elements. I need something like form.form('validate' sourceButton) and make this sourceButton available in my Custom Validation Rule function, based on the source button clicked I would decide if i should run that validation or not. Is there a way to achieve this? Thanks, Leela. |