Action inside Another Action
I have action inside action for modal payment operation
it contain form inside every action but not able to validate any thing
it just taking me to the next step without validation
is there a way to prevent that and do a validation in each step
11 Replies
you can prevent action like this
will it validate the fields
You could also use steps instead of forms which will provide you with a wizard
i a single modal i have take payment and a option to send invoice button
in wizard i cant jump steps directly
you have the ->skippable() method for the wizard? Dont know if that is what you mean though...
nope
EX-
i have a modal
and have 2 button
1 is for take payment
and 2nd one is for Send invoice
for them i have separate functionality so skippable will just skip the next step so
it wont work and i have tried to implement that ......but not working for my case
why not just make separate action/modal? for both
would this then be the solution? to check if the first action is valid or can be executed, if so just continue the process and otherwise halt it
Like this
Im sorry, I dont really understand what you are trying to achieve... Are you opening model after model based on the prvious action?
If so im not sure it is the best way to go but would the first action maybe look like this:
yes iam iam opeaning the modal based on privious action
i have chain of modalFooterActions
action inside action and forms