• Resolved bob reeves

    (@bob-reeves)


    I have a CF7 form where I have multiple checkboxes and the user has to select at least one option. Here is the code I’m using.

    [checkbox* checkbox-380 use_label_element “option1” “option2” “option3”]

    Everything is working. But when the form is submitted the result in the email displays the selected checkboxes in one line separated by commas like below:

    option1, option2, option3.

    But I want each item to be displayed on a new line like this:
    option1
    option2
    option3

    Is this possible please

    I am setting up my forms on localhost, so I cannot send you a link

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    `But I want each item to be displayed on a new line like this:
    option1
    option2
    option3

    Is this possible please`

    yes it is, but you’ll need to do it programmatically using the email tag filter available in the plugin. For details please see this tutorial. The tutorial is about table fields, but the logic is similar as your checkbox field is submitted as an array of values. Use the appropriate filter for your field’s mail tag

    Thread Starter bob reeves

    (@bob-reeves)

    Thanks @aurovrata,

    I will try to do it later

    Bob

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I am marking this as resolved since I have not heard back from you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email Messages’ is closed to new replies.