How can I force a line break within a notification at a certain width?

  • gpamn
    Asked on October 20, 2014 at 12:21 PM

    I'd like to be able to copy-paste the text of a notification email into a data field (in another program) that does not wrap text.  Some of the answers on my forms are free-field text (long!) so I'd like to force a line break to be included in the notification after a certain width.  I was able to find instructions on changing table width in notifications, but that limit is just a wrap, and not a line break.

    Is there a way to force line breaks in the notification email after a certain number of characters or at a certain width?

  • Ashwin JotForm Support
    Replied on October 20, 2014 at 1:23 PM

    Hello gpamn,

    Unfortunately, it is not possible to achieve your requirement. Please be noted that you cannot add any sort of script code in your form or email alert to count the character and add a line break.

    The only possibility I can think of is to take advantage of our WebHook feature. You can use WebHook to send submission email the way you want. You can add any code to format the data as per your choice.

    You may like to take a look at the following WebHook samples which should help you:  http://www.jotform.com/help/248-Webhook-Samples 

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!