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

script to fill a subform page from a dropdown box

Avatar

Level 2

Hello, trying to write script on to fill my subform with data from a dropdown box.

this is what I have so far, but don't know script to use for the dropdown part of it.

(ServiceTypeLine1.rawValue =  THIS IS WHERE I'M STUCK AS TO THE DROPDOWN BOX SCRIPTING    NEEDS TO = ONE OF THE CHOICES IN THE DROPDOWN THAT I CREATED.  otherwise IF IT'S NULL IT WILL BE HIDDEN)

{ServiceSubForm.presence = ("visible")    IF ='S THE DROPDOWN THEN MAKING SUBFORM VISIBLE.

}

TY

1 Reply

Avatar

Level 2

Answered myself.

(ServiceTypeLine1.rawValue == null)

{

ServiceSubForm.presence

= ("hidden")

}

else

{

ServiceSubForm.ServiceTypeField.rawValue

= ServiceTypeLine1.getDisplayItem(ServiceTypeLine1.selectedIndex);

ServiceSubForm.presence

= ("visible")

}