Jump to content

Remove Line Breaks

Recommended Posts

Add Header/Footer to details page >> Go to Footer and click on Source button >> Use the code below


document.getElementById('Mod0EditRecord').onmouseover = function (){
  var txt = new Array ("EditRecordFIELD1NAME", "EditRecordFIELD2NAME", "EditRecordFIELD3NAME");
for (var i=0; i < txt.length; i++){
mytxt = document.getElementById(txt[i]).value;
document.getElementById(txt[i]).value = mytxt .replace(/(\r\n|\n|\r)/gm,"");


Replace FIELD1Name and the rest to the actual field names in this line:  


var txt = new Array ("EditRecordFIELD1NAME", "EditRecordFIELD2NAME", "EditRecordFIELD3NAME");


If you have more than 3 fields to remove line break more you can add the IDs to this line.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...