• Resolved greglboyd

    (@greglboyd)


    Hello, I’m trying to set a field value within a group. I’ve setup the conditions and have three groups. It appears the conditions and groups are working, but my Price field keeps getting set to the value in the first group, even if that one isn’t supposed to be shown. I initially tried it with hidden fields, but when that didn’t work I tried setting it with a pulldown that only had one value in it. Basically Price keeps getting set to 30, even when it looks like one of the other groups are being shown that should set it to a different value.

    My CF7 code is below. Any ideas?

    • Age [radio Age default:1 “Adult” “Junior”]
    • Membership Type [radio Type default:1 “New” “Renewal”]
    • [group group-junior]

    • Junior Membership – $30
    • note: the entire fee goes to the Junior Shooting Program
    • <br>
      [select price id:Price default:1 “30”]
      [/group]
      [group group-adult]
      [group group-arenew]

    • Adult Membership Renewal – $40
    • Adult Membership Renewal [select price id:Price default:1 “40”]
    • [/group]
      [group group-anew]

    • New Adult memberships are pro-rated by the quarter
    • Please select the appropriate joining month and price [select price id:Price “Jan thru March – 40” “April thru June – 30” “July thru Sept – 20” “Oct thru Dec – 1”]
    • <br>
      [/group]
      [/group]

      Thanks,
      Greg

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    I think the problem is that you have 3 select fields with the same name “price”. This is invallid CF7 code. You should rename your price fields to price-1, price-2 and price-3 for example.

    Plugin Author Jules Colle

    (@jules-colle)

    Sorry for the late reply. this post looks weird.. If you still have the problem please create a new topic for it and try to format your form code neatly with the code button.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Field value not getting set correctly in shown group.’ is closed to new replies.