Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay Forms Events
Hi,
I want to know if forms feature has a way to handle events, like beforeload and afterload of a form. Here are some of my use cases :
- Do an API call to check a server status. If that server is down, then the form will not appear and display an error message instead of the form.
- Do an API call to retrieve a data value. Based on this value, I may have different roads in the form.
The only way I found as of now is to create a custom storage adapter and I'm able to handle the save method but I only see values of that form. Do you have any ideas ?
Thanks for help,
Hi ,
You can also try using Liferay form in your custom module , this may give you more control over the events. You can refer
https://liferay.dev/blogs/-/blogs/liferay-form-in-custom-module
Powered by Liferay™