Crow Canyon Software Forum
[[Item Title||Item Title]] has hidden br attached at end in Mail Template
Quote from AmandaP on April 14, 2023, 10:44 amThere appears to be a hidden <br> attached to the [[Item Title||Item Title]] placeholder in the mail template builder for workflows. It does not show up when viewing/editing the HTML, but when an email is sent that has the [[Item Title||Item Title]] placeholder in the subject line, the wayward <br> appears, attached to the end of it. When used in the body of the email, there is an automatic and unremoveable line break; if you try to put [[Item Title||Item Title]] in line with other text, the line break won't show in the editor or the HTML source, but will appear in the sent email. For instance:
In the template you put:
[[Item Title||Item Title]] has been approved!
In the email that gets sent, it looks like this:
Item Title
has been approved!
There appears to be a hidden <br> attached to the [[Item Title||Item Title]] placeholder in the mail template builder for workflows. It does not show up when viewing/editing the HTML, but when an email is sent that has the [[Item Title||Item Title]] placeholder in the subject line, the wayward <br> appears, attached to the end of it. When used in the body of the email, there is an automatic and unremoveable line break; if you try to put [[Item Title||Item Title]] in line with other text, the line break won't show in the editor or the HTML source, but will appear in the sent email. For instance:
In the template you put:
[[Item Title||Item Title]] has been approved!
In the email that gets sent, it looks like this:
Item Title
has been approved!
Quote from DavisA on April 14, 2023, 3:30 pmWe've had the same issue and my understanding is that it's something that SharePoint adds. We found that using the 'Title' field value placeholder ( [[Title||Title]] ) instead of the 'Item Title' placeholder gave us the results we wanted.
If you're wanting it to be linked, you can build the link manually using the [[Title||Title]] placeholder in the Text field of the hyperlink button.
We've had the same issue and my understanding is that it's something that SharePoint adds. We found that using the 'Title' field value placeholder ( [[Title||Title]] ) instead of the 'Item Title' placeholder gave us the results we wanted.
If you're wanting it to be linked, you can build the link manually using the [[Title||Title]] placeholder in the Text field of the hyperlink button.