I would use the functionxfa.host.messageBox ( "BLACK"" , "MY COLOR", 3 , 1 ) ; to display an Alert message if the text1 field is equal to "BLACK"orto display an Alert message if the text1 field is equal to "YELLOW"orto display an Alert message if the text1 field is equal to "GRREN"Tks