Updating Standalone Action's modal description based on the argument passed to the form
I have a standalone action that launches a modal. I want to update the modal description based on the argument passed to the Form?
5 Replies
You can't really do that, you could have the description load a state value? defaulting to Some Description. And selecting a value is live which would cause the modal to refresh.
Or you can use the placeholder field instead of description and set the value that way?
so, there is no way to access the action object inside the
form
function ?Not as far as I am aware. You could try passing in $action within the function, but it hasn't been initiated yet so I double it.
i do have the instance of the
$action
on the form
closure, but setting the modalDescription
doesn't take effect, not sure if I need to do something to re-renderDid you set the form field as live?