Wizard with depending steps in an action
Hi - I am trying to achieve a multi-step import.
The steps should be:
1.) Input an URL
x) Do some validation against an API
2.) Select Specifics
3.) Import
I am struggeling on the x-part. It is possible that the user gives in a false URL (outside of scope, URL points to wrong datatype and whatnot).
I have two questions here:
A) Is it possible to keep the user in step 1 and display an error if he/she gives in false data? If so - how?
B) Is there a way to build up the schema for step 2 dynamicly based on the validation done for question A? If so - how?
Thanks. π
Solution:Jump to solution
Okay, found it out myself. I can lock the user in step 1 by using custom rules. see https://filamentphp.com/docs/3.x/forms/validation#custom-rules afterwards the advanced forms (dependend select-options and such) helped. see https://filamentphp.com/docs/3.x/forms/advanced
1 Reply
Solution
Okay, found it out myself. I can lock the user in step 1 by using custom rules. see https://filamentphp.com/docs/3.x/forms/validation#custom-rules afterwards the advanced forms (dependend select-options and such) helped. see https://filamentphp.com/docs/3.x/forms/advanced