If I am using AbstractFormValidator and in some places, I am using
setRequired, default validation on components.  What is the best way to
remove the validation "temporarily"  Let's say I am in a view only mode
and fields are disabled, I want to remove validation.  And then later
on, may add back that validation.  I guess I Could remove and add
onBeforeRender or initialize or configure and then add the validators
back.  I was trying to avoid doin that.   I would have to remove
validation on all the components on those particular pages.  Also, I was
thinking of just exiting early in the validation methods?  
 
Also, let's say I have some fields that are disabled and some that
aren't.  I am using abstractformvalidator and throwing an error if those
fields are empty.  They are empty but disabled.  Is there a way to treat
disabled fields differently in validation modes..

Reply via email to