View Full Version : How to disable form validation after Action.Load?

26 Aug 2010, 5:45 AM
Hello, I want to remove validation after I load a form. I've tried clearInvalid on success/complete, but it just doesn't work. I'm already changing some validation attributes on success depending on wich values I get from the load request.
The field in question remains invalid until I click or do something that triggers validation again. However validation after changing the values still makes the mark appear.

params: {
id: this.idItem
success: function (form,action){
if(p.importedField.getValue() == 1){
p.dateField.allowBlank = true;
// f.clearInvalid();
failure: APPAjaxFormFailure,
complete: function(){

Anyway, that's the two places I've tried. How else can I solve this? What is it that triggers the validation on load?