2 Replies Latest reply on Jul 3, 2012 5:53 AM by MarkWalsh

    Set font attributes in GotFocus?

    MarkWalsh Level 4

      I have a field whichI am formatting based on the values entered, I need to change the color and font (italic and/or bold) based on what is entered. I am doing so in the 'Custom Format Script', but I want to remove the formatting when the user is entering a value.

       

      I tried to reset the font's color and specs in the 'GotFocus' event using the following:

       

          event.target.textColor = color.black

       

      but it doesn't seem to work (The color remains whatever it was set to in the 'Format' script). Is there any way I can reset the font specs for data entry? Is there any way to force a 'refresh' of the fields' font attributes?