• Resolved saralanda

    (@saralanda)


    Hello,

    I have a form where, based on a url parameter several calculations are performed dynamically.

    I now want to add a button that redirects the user to different pages based on the answers of the dynamic calculations.

    I tried using a button but realized that I need to turn off the “Dynamically evaluate the equations associated with the calculated fields” setting for the button to work.

    How can I do this without turning off the dynamic calculations?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @saralanda

    You can define the equation to generate the URL, and then redirect the user from the button.

    For example, you can implement an equation similar to the following one:

    (function(){
    go_to_url = generateURL("https://www.yourwebsite.com/", {"param1": fieldname1, "param2": fieldname2});
    })()

    And then, the on-click event in the button field would be:

    redirectToURL(go_to_url);

    More information about the “URL Operations” module by reading the following section of the plugin documentation:

    https://cff.dwbooster.com/documentation#url-module

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Dynamically evaluate equations and use buttons’ is closed to new replies.