• Hi, i have a form with 3 radios, none of them selected for default.

    I need to use something like shop/?plan=gold so i can get the radio select when using the url.
    Also created a variable {get:gold} {get:silver} {get:bronze}

    Tried all possible variations and searched all over for a solution, how i can achieve this behavior?

    https://www.ads-software.com/plugins/caldera-forms/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, did u solved this?

    Hi teste123456.,

    1st you set a Radio Button field named plan, w/ Value;
    .Gold
    .Silver
    .Bronze

    2nd set the variable w/ value
    – name; RB w/ value %plan% set as passback

    3rd redirect your form to https://www.site.com/shop (page or another form created w/ caldera) and set the shop page with snippet;
    <?php
    echo ( $_GET[‘RB’] );
    ?>
    or if created with caldera set a field w/ value {get:%plan%}

    Hope that help, Tq

    Hi there.,

    just for information {get:*} function is to get value in the URL to filled in the function as ilustrated below;
    URL. https://www.site.com/shop?cf_id=7&p=Silver

    when your ‘shop’ page contain [snippet_code]
    <?php
    echo ( $_GET[‘RB’] );
    ?>

    the result is: URL. https://www.site.com/shop?cf_id=7&p=Silver
    Content:

    Plan

    Silver

    or if the page is another page with [caldera_shortcode_snippet]
    hidden element
    {get:p} //it’s mean=> get Silver (https://www.site.com/shop?cf_id=7&p=Silver)

    radio button element1
    -Gold (default)
    Silver
    Bronze

    radio button element2
    Gold
    -Silver (default)
    Bronze

    radio button element3
    Gold
    Silver
    -Bronze (default)

    Condition to Hide Gold & Bronze if hidden element is Silver, vise versa

    the result is: URL. https://www.site.com/shop?cf_id=7&p=Silver
    Content:

    Plan

    Silver

    radio button element2
    Gold
    -Silver (default)
    Bronze

    or you can >>click_here<< for trying the form

    Hope That Help, Tq

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Passing URL parameter to check a radio’ is closed to new replies.