Expand my Community achievements bar.

Highlight Text after a selection has been made

Avatar

Level 1

I am not sure if this is at all possible, but I am hoping someone can help me with this,

In one part of my form that I am trying to create, I would like to have radio button for the user to choose yes or no for one of the questions. If the user chooses yes, I would like a message box to appear to confirm their choice and I would also like that portion of the form to highlight red.

2 Replies

Avatar

Level 10

Hi,

You can achieve this with some script in the click event of the radio button exclusion group.

if (this.rawValue == "Yes")

{

     xfa.host.messageBox("Please confirm that you selected Yes", "Your title to the message box", 2, 2);

     Yes.caption.font.fill.color.value = "255,0,0";

}

else

{

     Yes.caption.font.fill.color.value = "0,0,0";

}

This is on the basis that the two radio buttons in the exclusion group are called "Yes" and "No" and that you have not specified values for the items in the Object > Binding palette.

There are some examples here: http://assure.ly/kp60nk

Hope that helps,

Niall