Support » Plugin: Contact Form 7 » Getting checkbox or radio values from Shortcode Attributes

  • Hi,
    Somebody know if there’s some way to get checkbox or radio values passed from shortcode attributes?

    For example, If insert a shortcode like this on my page/post:

    [contact-form-7 id="21" title="Test form" attr1="Atribute 01" attr2="Atribute 01"]

    Paint it in the form like this code:

    [checkbox* checkbox-207 use_label_element exclusive "Atribute 01" "Atribute 01"]

    Something like this https://contactform7.com/getting-default-values-from-shortcode-attributes/ but inserting the attributes in checkbox values.

    It must work as when you get values from Listo… using this code:

    [checkbox* checkbox-207 use_label_element exclusive data:shortcode_attr]

    • This topic was modified 1 year, 4 months ago by Kim Soler.
  • The topic ‘Getting checkbox or radio values from Shortcode Attributes’ is closed to new replies.