Message Boards

Liferay Forms Events

Mounir Hallab, modified 2 Years ago.

Liferay Forms Events

Junior Member Posts: 27 Join Date: 3/2/15 Recent Posts

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,

thumbnail
Mohammed Yasin, modified 2 Years ago.

RE: Liferay Forms Events

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

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