• Resolved anefarious1

    (@anefarious1)


    Hello.

    I was able to make a button field work with an onclick event. However, I want to use a shortcode to display a specific calculated field once the user is sent to a new page after clicking this button.

    Is this only possible with the paid version?

    Can you tell me what shortcodes work with the free version when sending users to a different page?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @anefarious1

    I’m not sure what do you mean by “to use a shortcode to display a specific calculated field”? If you want to load a different form based on an URL parameter, you must implement it with server-side code by yourself, like:

    <?php
    if(isset($_REQUEST['param1']))
    {
    if($_REQUEST['param1'] == 'A') print do_shortcode('[CP_CALCULATED_FIELDS id="1"]');
    if($_REQUEST['param1'] == 'B') print do_shortcode('[CP_CALCULATED_FIELDS id="4"]');
    }
    ?>

    Best regards.

    Thread Starter anefarious1

    (@anefarious1)

    What I mean is, for example, display fieldname5 and fieldname4 output from the same form [CP_CALCULATED_FIELDS id=”15″], not a different form. If it’s the same form, would that require this server side code? I’m hoping there’s a shortcode. Thanks

    Plugin Author codepeople

    (@codepeople)

    Hello @anefarious1

    To display fields in the form based on some conditions, you can configure them as dependents. More information about dependencies by reading the following blog post:

    https://cff.dwbooster.com/blog/2020/03/01/dependencies

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Button w/ OnClick to show Calculated Fields on other pages’ is closed to new replies.