AnsweredAssumed Answered

Colour Remove

Question asked by hrcap on May 11, 2013
Latest reply on May 11, 2013 by philmodjunk

Title

Colour Remove

Post

     Morning Everybody

      

     I am a little bit stuck and some help would be appreciated.

      

     I have created a script that validates a postcode, if the postcode is found to be incorrect the colour of the text is set to red, the user then has the opportunity to correct the postcode.

      

     However when the user does enter the correct postcode i.e. when the length of the field = 6 the colour of the text remains red.

      

     does anybody know how i can remove this colour? 

      

      

     Let(
      
     @Postcode = TextFormatRemove(Substitute(CUSTOMERS::post_code; " " ; "" )) ;
      
      
     Case(
      
      
     Length(@Postcode) = 6 ; Upper(Replace(@Postcode; 4 ; 0 ; " " ) ) ;
      
      
     Upper(Replace(@Postcode; 5 ; 0 ; " ") )
      
     )
      
     )

      

     Many Thanks

      

     Hadleigh

      

Outcomes