Has anyone done anything with validation rules that allows for different levels of errors?
I’m thinking having one set of rules that are must have (like the current errors) but also another set that will only notify the user but allow them to proceed anyways.
I’m thinking maybe setting different scenarios would allow this?
I made this little method which let’s me do what I wanted. Then I assign either the ‘errors’ or ‘warnings’ scenarios to the rules.
public function getIssues()
$issues = ;
$org_scenario = $this->scenario;
foreach (['errors', 'warnings'] as $k)
$this->scenario = $k;
$issues[$k] = $this->errors;
$this->scenario = $org_scenario;