I'm trying to replace the "<br>" tags in a block address with 'n'
My javascript knowledge is limited, but from what I know (and have read online) this should be as easy as replace(oldString, /<br>/, 'n');
Here is my exact code:
var shipToAddress = invoice.getFieldValue('shipaddress'); shipToAddress = shipToAddress.replace(shipToAddress, /&lt;br&gt;/, 'n'); This code throws an error:"SyntaxError: invalid flag after regular expression (OnAfterSubmit#55)"I've googled for this error and there aren't many useful results.Anyone have any ideas what I could be doing wrong?Thanks for any help,Steve