Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

xfa.host.messageBox

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

Alright, well you can just have if statements to output the value wanted :

Hope this help!

View solution in original post

4 Replies

Avatar

Level 10

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

Avatar

Level 2

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

Avatar

Correct answer by
Level 10

Alright, well you can just have if statements to output the value wanted :

Hope this help!