Hi Experts,
I have one requirement where I have to perform some other actions once User submits an Entity Form and data inserted successfully.
Generally on success, we can redirect to any other page or URL or Show the Success message but I want to do some other set of actions using Javascript/Jquery once the data inserted successfully.
Is there any way by which I can detect the data inserted successfully or not and if yes then perform some other action using JS or Jquery.
Please help me with this requirement.
Any help will be appreciable.
Thanks,
Amit
There are a few ways you can achieve that, I will give you two options I can think on top of my head
1 - use the redirect option, you can redirect to the same page (or a different one), but add a value under "Append Custom Query String".. then you can validate the query string in your web page JS/Liquid and add your logic
2 - keep the success message, and on the entity form load you validate if the message is there, and then add logic to hide the message and do whatever you want, you can get those by validating the div with id=MessagePanel and class alert-success
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Fubar
62
Super User 2025 Season 2
Lucas001
48
Super User 2025 Season 2
KevinGador
44
Super User 2025 Season 2