xfa.host.messageBox

skate2k5

22-03-2016

I would use the function


xfa.host.messageBox ( "BLACK"" , "MY COLOR", 3 , 1 ) ;


to display an Alert message if the text1 field is equal to "BLACK"

or

to display an Alert message if the text1 field is equal to "YELLOW"

or

to display an Alert message if the text1 field is equal to "GRREN"


Tks

Accepted Solutions (1)

Accepted Solutions (1)

Answers (3)

Answers (3)

skate2k5

22-03-2016

No sorry.

I have a text field : text1

If I write in text1 BLACK it must appear a popup that says BLACK ;

If I write in text1 YELLOW it must appear a popup that says "  ";

If I write in text1 GRENN it must appear a popup that says "  ";


So if I write BLACK you must appear a popup that says " BLACK "


Tks

Magus069

MVP

22-03-2016

Hi there,

if the values are directly black, yellow and green, you can use the rawValue of the object directly in the messageBox, like the following

Hope this will help