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
BedrockMission!

Learn More

View all

Sign in to view all badges

xfa.host.messageBox

Avatar

Avatar
Validate 1
Level 1
skate2k5
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
skate2k5
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
skate2k5
Level 1

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)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

22-03-2016

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

Hope this help!

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 1
skate2k5
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
skate2k5
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
skate2k5
Level 1

23-03-2016

perfect thanks

Avatar

Avatar
Validate 1
Level 1
skate2k5
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
skate2k5
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
skate2k5
Level 1

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

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,072 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
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