Support » Plugin: Contact Form 7 Dynamic Text Extension » Can i use form values in a shortcode?

  • Resolved dzamanakos


    Hi, i’m trying to build a form with the following logic:
    – the user chooses some select fields, for example [select select1 “option1” “option2”], [select select2 “option3” “option4”]
    – i have a [dynamichidden new_email “CF7_NEW_EMAIL” ]
    – in CF7_NEW_EMAIL shortcode i want to apply some logic based on the selected fields options

    for example, if the user selects option1 and option4 i want the new_email value to be “,“, so the email will be sent to 2 emails. If the user selects only option1 i want the new_email value to be “”

    Can i send to my shortcode function the values of the select fields in order to return my result?

    best regards,

    • This topic was modified 2 months ago by  dzamanakos.
Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark



    There isn’t any client-side logic built in, to the DTX won’t help with that. But if I understand your example, I don’t think you need an extra hidden field. Just use the select tag as the value for your To: field and set up the option values appropriately

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.