Form load action manually
Good day,
I have sometimes a lot of actions in the "Form Load Actions" and we have trouble to maintenance this....
I would like to know which function/event we can use to trigger manually the "Form Load Actions". As I saw its not the default $(document).ready...
Thank you in advance.
-
Hi Senad Omicevic.
Can you provide more details about what are you trying to achieve with triggering Form Load Action?0 -
Can you please provide us the details about the use case? Maybe there is a better way to trigger the actions by click with buttons/links of Rich Forms.
0 -
Hello,
We use more and more custom javascripts for our actions. For example at every save button in our forms we use javascript files instead of SRF Actions and control everything over global js files.
We want to use the same logic for the Form Load Action and call in the forms just 1 js file which has the code.
0 -
You can trigger your own javascript functions from Button/Link Actions click and as well from From Load Actions that is executed when form loads.
Did a short example here:
The function g_ShowMessage() is in my global js file and executed when form is loaded and when button is clicked.
The global js file is load to page simply by adding a script tag to the page:
Maybe you find a smarter way to link/load the globally js file (user custom action or similar).
I don't use the Form Load Action to load the global js file because it's executed async and therefore not granted the function is available when subsequent actions will be executed.
0 -
I will try your solution and hope it helps us with our projects.
Thank you.
Best regards
0
Please sign in to leave a comment.
Comments
5 comments