Clear RichText input after action
Hi All,
I have a table action to view details, the action opens modal which has a RichText input to update a related model, this is working fine. When I submit the form I need to clear/empty the RichText input... any ideas, Google and LLMs have not got me to a solution yet 😦
Cheers, Tee
6 Replies
why aren't you using the
submit
action to do this?the code example I gave only shows the "Send" button but there are other buttons such as "Send and close", "Send and pending" so I thought custom action for each?
I think you can use makeModalSubmitAction
would you like to keep the modal open?
yeah, it already does that, just need to clear the RichText input 🙂
I will take a look at modalSubmitAction 👍
take a look