HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Changing order of validation rules on a form question. How do I?
Each one gets it's own error $Sender->Form->SetValidationResults($Validation->Results()); if($Sender->Form->ErrorCount() == 0){ $Name = $FormValues['YourName']; $Subject = sprintf('Contact From %s %s', $Name, date('j M Y H:i')); $Email->Subject($Subject); $Email->To( C('Garden.Email.SupportAddress', ''));… -
Changing order of validation rules on a form question. How do I?
This is a question?? not an answer :) let's says there is a form input 1 input 2 input 3 you add an input 4 and a validation rule for input 4 if 4 is bad .... $Sender->Validation->AddValidationResult('input1',T('please enter input4')); $Sender->EventArguments['Valid'] = FALSE; how do you get it to evaluate input1 2, and 3… -
Re: Changing order of validation rules on a form question. How do I?
I might not be presenting the question well. but you gave me the possible reason. I mistakenly said input4 had a rule added when in fact it didn't, just a test of the form input and then this was applied, that explains it, it never got to the other rules. $Sender->Validation->AddValidationResult('input1',T('please enter… -
Re: Changing order of validation rules on a form question. How do I?
thx. we both edited messages. like I said I tested data received from form and did my own checking without applying a rule, I still manually validated but.... Unfortunately my own checking caused my rule to be tested first. where as it would have been sequential if I created a custom rule and then applied it using the…
4 results