Skip to main content

Search

Form load action manually

Comments

5 comments

  • Taras Lozynskyy

    Hi Senad Omicevic.
    Can you provide more details about what are you trying to achieve with triggering Form Load Action?

    0
  • Christof Nussbaumer

    Hi Senad Omicevic

    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
  • Senad Omicevic

    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
  • Christof Nussbaumer

    Hi Senad Omicevic

     

    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
  • Senad Omicevic

    Hi Christof Nussbaumer

     

    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.