Email Notifications: How to separate the selected options in a check box?

  • Profile Image
    dantuma
    Asked on October 18, 2017 at 12:34 PM

    I'm using several 'multiple select' fields in my form.


    When sending an email, I need to ensure that if there are multiple values, these are kept on the same line.


    Right now it looks like the default is inserting a 'Carriage Return' between values.


    Ideally, if there are multiple values select, I'd like these values separated by a comma, and not a carriage return.


    Please advise.


    Thanks!

  • Profile Image
    Kevin_G
    Answered on October 18, 2017 at 01:45 PM

    It's not possible to change the format how the selected options in the check box field will be sent through the email, but you can split the data using the field's name. 

    For example, using just the field name you will have the data like this: 

    15083485701.png

    When you split the data it will be displayed like this: 

    15083486002.png

    To achieve that you will only need to get the field's name and add the position, it starts on 0 so if you have 4 options you will include split them like this: 

    {test:0}, {test:1}, {test:2}, {test:3}

    This guide will help you finding the field's name: https://www.jotform.com/help/146-How-to-Find-Field-IDs-and-Names 

    I hope this helps.