Disable validation (when save as concept)
Hi all,
I have a multi step form (4 steps total)
I want to disable all validation on step 2,3,4 if user presses the "Save as concept" action.
Below is my Action
As you can see i set a 'status' attribute. but the create process is the same as normal.
I know the validation is somewhere in the below function and i think i need to overwrite this function to check the 'status' if i need to validate
i think i am overthinking this, so any help/insight would be helpful.
Thanks.
Solution:Jump to solution
i solved it like this.
create a function in the resource
```php
private static function requiredConcept(): \Closure...
3 Replies
usualyl that would be skippable but not sure if you can do it per step
Solution
i solved it like this.
create a function in the resource
and call this function in required
and change the create action
If someone has a different more reliable approached i would love to here it.
Good stuff