PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Form settings conditional confirmation

  1. Hi

    At form settings confirmation I want to provide 3 different confirmation messages. The first two are working and the last is not. I think the problem is I do not know what the value returned by a check box field is. I am assuming it is the check box label but that is not working.

    If first radio button field is 'no' then first message is displayed. Code is below. This works.
    If second radio button field is 'Yes' then second message is displayed. Code is below. This works
    If final field is 'Yes that's OK' the only available tick box value, then the success message get's displayed. Code is below. This does not work ... what have I don't wrong?

    --// this works
    [gravityforms action="conditional" merge_tag="{Are you a resident of Victoria?:1}" condition="is" value="no"]
    [box type="note"]As you do not reside in Victoria Consumer Action is unable to assist you. Please contact your state consumer affairs or fair trading department.[/box]

    --// and this works too
    [/gravityforms] [gravityforms action="conditional" merge_tag="{Is your enquiry on behalf of a business or does it relate to your business?:4}" condition="is" value="yes"]
    [box type="note"]As you have a business related problem Consumer Action is unable to assist you. Please contact Consumer Affairs Victoria or the Law Institute of a Victoria for a referral to a private solicitor.[/box]
    [/gravityforms]

    --//but this does not!
    [gravityforms action="conditional" merge_tag="{Confirmation:18}" condition="is" value="Yes, that's OK."]
    [box type="tick"]Your email inquiry has been submitted. One of our staff will respond to you by email of phone as soon as possible. We normally respond to email inquiries within working days.[/box]
    [/gravityforms]

    Thanks

    Posted 11 years ago on Thursday October 4, 2012 | Permalink
  2. i have two radio button yes and no.if i press yes it should display input field where i submit some value for yes and if i click on no then no input field should displayed how can i do this

    Posted 11 years ago on Friday October 5, 2012 | Permalink
  3. @adam, please begin a new topic for your issue so we can address them individually as each situation is unique.

    @Gordon, can you change the value to not use an apostrophe? We've had a couple instances where apostrophes in labels cause problem. Just as a test, try "Yes, that is OK." and see if you can get it to work. If it does work, let us know.

    Posted 11 years ago on Saturday October 6, 2012 | Permalink
  4. Hi

    No that didn't help. But I have found a solution.
    I tested by replacing check box field with a single line text field: the conditional logic then worked [but of course the outcome not acceptable from a UI point of view].
    Then I tried a radio button with one option 'Yes". This worked. It's not perfect from UI but it's acceptable.
    Then I tried the following combinations NONE of which worked
    "Yes, that's OK"
    "Yes, that is OK"
    "Yes that is OK"

    Ie not just the apostrophe but the comma and/or the fact there were multiple words don't seem to be acceptable here.

    My suspicion was that the check box field outputs a bullet character in front of the value; I have also tried the check box field with a one word value but no luck.

    Although the result is now acceptable it's not great - any suggestions appreciated.

    Thanks

    Posted 11 years ago on Saturday October 6, 2012 | Permalink
  5. I brought this topic to the attention of the developers to see if they can recreate the problem.

    Posted 11 years ago on Monday October 8, 2012 | Permalink
  6. Hi, GordonR,

    The apostrophe in the text is causing the condition to not match because the code is comparing html encoded text to non-encoded text and this results in no match. However, there is a workaround you can use when building your shortcode. When you choose the field from the merge tag drop down, you can append ":value" (ex: merge_tag="{Confirmation:18:value}") to the tag so that the value of the checkbox is compared instead of the label. After that, you can edit your checkbox field and set the label to "Yes, that's OK.", check the show values box, and set your value to "yes". Then change your shortcode to have value="yes". This will allow you to display whatever text your want to the user, but have the simple yes/no as the values compared behind-the-scenes.

    I do see you did a lot of testing with removing the comma, apostrophe, etc., but the issue may have been that the value of the checkbox still had the special characters.

    I am adding this issue to our bug tracking system to address in the future because we need to be very careful with any changes related to matching values.

    Try out the suggestion I gave you and let us know if you have questions.

    Posted 11 years ago on Monday October 8, 2012 | Permalink