Optional modal in an action
Hello,
I am wondering if it is possible to have an optional modal in an action of a form.
I have a products database and all products have ingredients. I have some logic to connect all the ingredients to the product. Sometimes I need to present a form when it is not clear which ingrediënten needs to be connected. This should be an optional form. I am wondering if this is possible and looking for an approoach on how to do this.
Thanks.
5 Replies
I'm not sure I understand the flow: so there should be a form WHERE exactly? Inside the form, as a button to open modal to add a few fields? And what is the DB relationship between ingredients and products, can you provide the data example?
So inside my form page I have an action. When I click on the action it wil run some code and based on the outcome of the code it could be that I need to present a form form more information.
mm, I see the point now - check something and open the modal almost as a warning that something is wrong. Yeah, I won't have the immediate answer, would need to experiment to be able to answer. Maybe will find time later, but can't promise sorry.
I will also try and experiment further. If I find a solution I will post it here.
maybe
replaceMountedAction
?