• Resolved Shoptutor

    (@shoptutor)


    Hello Is there a way I can pass a variable through the shortcode, so it fill an default value at an imput?

    I was thinking in something like this:
    echo do_shortcode (‘[mc4wp_form id=”12345″ my_var=”dinamic_value”] ) ;

    And on the form: <input type=”hidden” name=”PRODUCTNAME” value=”{my_var}”>

    Is there a way to accomplish this?

    https://www.ads-software.com/plugins/mailchimp-for-wp/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello Shoptutor,

    Currently, that is not possible. You can directly add the hidden field to the form or if this field changes based on form location, then I would recommend using our “Premium” version which allows the creation of multiple forms.

    P.S. It’s a nice suggestion and I’ll discuss it with my colleagues.

Viewing 1 replies (of 1 total)
  • The topic ‘Variable on Shortcode’ is closed to new replies.