Saved Search Tip - If you have long text fields (m...
# suiteanalytics
c
Saved Search Tip - If you have long text fields (memo, description, etc) and want to include them in a saved search, you'll see that the row height of each record will be the height of that field. To keep the height consistent and compact but still display these fields you can use a little javascript to show/hide the full text. Use Formula (HTML) as the field type.
Copy code
'<div>    
   <script type="text/javascript">        
   function toggleText_' || {internalid} || '() {            
       var lessText = document.getElementById("less_' || {internalid} || '");            
       var moreText = document.getElementById("more_' || {internalid} || '");            
       var btnText = document.getElementById("btn_' || {internalid} || '");            
       if (lessText.style.display === "none") {                
           lessText.style.display = "inline";                
           btnText.innerHTML = "more";                
           moreText.style.display = "none";            
       } else {                
           lessText.style.display = "none";                
           btnText.innerHTML = "less";                
           moreText.style.display = "inline";            
       }        
   }    
   </script>    
   <span id="less_' || {internalid} || '">' || substr({memo}), 0, 25) || '...</span>    
   <span id="more_' || {internalid} || '" style="display:none;">' || {memo} || '</span>
   <a href="javascript:void(0);" onclick="toggleText_' || {internalid} || '()" id="btn_' || {internalid} || '">more</a>
</div>'
❤️ 1
🙌 2
👍 1