Expand my Community achievements bar.

SOLVED

Filled in field causes drop down list to display

Avatar

Level 7

I have a 4-digit field that the user must fill in. When the field is filled, I need a drop-down list display. What event do I use for the script on the 4-digit field? I have gotten the script to work on radio buttons and check box, but am having trouble with this new situation.

Thanks,

MDawn

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You could use the exit event, with an if statement:

if (this.rawValue !== null)

{

     dropdown1.presence = "visible";

}

else

{

     dropdown1.presence = "hidden";

}

If there is a specific pattern or value, you could check against that as well.

Good luck,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

You could use the exit event, with an if statement:

if (this.rawValue !== null)

{

     dropdown1.presence = "visible";

}

else

{

     dropdown1.presence = "hidden";

}

If there is a specific pattern or value, you could check against that as well.

Good luck,

Niall

Avatar

Level 7

Thank you. In the meantime, I discovered that the numeric field was on page1 and the drop-down list was on page2. When I specifically included the page designation in the names, it worked. Therefore, it was the script or the event that was the problem.

Thanks again for your time.

Margaret Dawn

Supervisor - Documentation

W: 630-850-1065