rbjformula.dk Posted October 6, 2009 Share Posted October 6, 2009 Hello I have a problem, I need a java script that can go in and search for # and replace it with a line break. There can be several # in the same text. Hope you can help thank you in advance Link to comment Share on other sites More sharing options...
esmith Posted October 6, 2009 Share Posted October 6, 2009 If by "#" you mean the literal character then your rule would be: return Field("YOUR_FIELD").replace(/#/g,"<br />"); If by "#" you mean any number then your rule would be: return Field("YOUR_FIELD").replace(/\d/g,"<br />"); In both cases, you will need to check the return tagged text box. Link to comment Share on other sites More sharing options...
rbjformula.dk Posted October 6, 2009 Author Share Posted October 6, 2009 Hello Eric Many thanks for your help, it worked and it was a great help. Sincerely, René Jarmer Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.