Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Thank you, we filed a bug AFORM-695
Though not practical, we will replace \n with <space> or <dot> or <slash>
What charactor do you replace with?
Subject line of email is one-line only. I still don't think map a multiple-lines field to it make a lot of sense.
Of course inserting a placeholder for a multiline field in the subject does not make a lot of sense. However it's a feature in EPiServer.Forms that you can do that, so of course an editor will sometimes do it.
We replaced all whitespace(s) in the subject with single spaces like this:
string subject = this._placeHolderService.Service.Replace(emailConfig.Subject, subjectPlaceHolders, false);
subject = Regex.Replace(subject, @"\s+", " ");
EPiServer.Forms doesn't handle subjects containing linebreaks. They should be removed. .NET fails to set the subject if the string contains a line break.