3 Replies Latest reply on Jan 9, 2018 6:25 AM by try67

    Script that Triggers if Part of Value is Matched

    MADink_Designs27 Level 2

      I'd like to write a script that matches specific text in part of the field value but not all of it. Is there a way to script that?


      The logic would be if the field CONTAINS this specific text, change the text color. If not, keep the text color as black.


      Here's what I've tried (tried in both validation and format script with no luck):


      if(event.value >= "(T)") {
      event.textColor = color.red;
      else {
      event.textColor = color.black;


      Any suggestions?