Merge or simplify group output
-
Hi dev
Trying to simplify the output of a form to connect to both Mailchimp and Salesforce CF7 plugins.
Form snippet
<label class="country"> Country [select COUNTRY "Select One" "United States" "Australia" "New Zealand" "Canada" "Other"]</label></div> <div class="column-half"> [group us]<label> State [select STATE-US "Alabama" "Alaska" "Etc" ] </label>[/group] [group au]<label> State [select STATE-AU "New South Wales" "Queensland" "Etc" ] </label>[/group] [group nz]<label> State [select STATE-NZ "Canterbury" "Otago" "Etc" ]</label>[/group] [group ca]<label> State [select STATE-CA "Alberta" "British Columbia" "Etc" ]</label>[/group] [group other]<label> Please Specify [text othercountry] </label>[/group] [group so]<label> State [select selo "Please Select Country"] </label>[/group] </div>
Email snippet
<strong>Country:</strong> [COUNTRY] [other] <strong>Other Country:</strong> [othercountry] [/other] <strong>State:</strong> [us] [STATE-US] [/us][au] [STATE-AU] [/au][nz] [STATE-NZ][/nz][ca] [STATE-CA][/ca]
That last line is the complicated one we need to simplify so we can feed it into the other systems. Is there a way we can condense the output of that line into a new single variable we can pass through to the others?
Recap
The country field is easy, but based on the chosen country, the state could come from [STATE-US], [STATE-AU], [STATE-NZ] etc. We need to be able to map a single output of STATE = ChosenState. Hope that makes sense.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Merge or simplify group output’ is closed to new replies.