These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Drop Down Menu enabling invisible text

captainkalt
Registered: Jun 18 2008
Posts: 8

Hey all, I have a drop down menu which has text attached to it which I want to appear right when the item is selected from the menu. Right now however, when you select and item you have to double click it in order for the invisible item to show. I would like it so you just select the item from the drop down and then the item automatically shows. Here is the code and thanks for any help.

if(profiles.rawValue == "CRM ADMIN")
{
admin.presence = "visible";
mkt.presence = "hidden";
ext.presence = "hidden";
man.presence = "hidden";
user.presence = "hidden";
sec.presence = "hidden";
stwrk.presence = "hidden";
sysadmin.presence = "hidden";
}
else if(profiles.rawValue == "MKT ADMIN")
{
mkt.presence = "visible";
admin.presence = "hidden";
ext.presence = "hidden";
man.presence = "hidden";
user.presence = "hidden";
sec.presence = "hidden";
stwrk.presence = "hidden";
sysadmin.presence = "hidden";
}
else if(profiles.rawValue == "MKT EXT DSN")
{
ext.presence = "visible";
admin.presence = "hidden";
mkt.presence = "hidden";
man.presence = "hidden";
user.presence = "hidden";
sec.presence = "hidden";
stwrk.presence = "hidden";
sysadmin.presence = "hidden";
}
else if(profiles.rawValue == "MKT MGR")
{
man.presence = "visible";
admin.presence = "hidden";
mkt.presence = "hidden";
ext.presence = "hidden";
user.presence = "hidden";
sec.presence = "hidden";
stwrk.presence = "hidden";
sysadmin.presence = "hidden";
}
else if(profiles.rawValue == "MKT USER")
{
user.presence = "visible";
admin.presence = "hidden";
mkt.presence = "hidden";
ext.presence = "hidden";
man.presence = "hidden";
sec.presence = "hidden";
stwrk.presence = "hidden";
sysadmin.presence = "hidden";
}
else if(profiles.rawValue == "SECURITY ADMIN")
{
sec.presence = "visible";
admin.presence = "hidden";
mkt.presence = "hidden";
ext.presence = "hidden";
man.presence = "hidden";
user.presence = "hidden";
stwrk.presence = "hidden";
sysadmin.presence = "hidden";
}
else if(profiles.rawValue == "STUDENT WORKER")
{
stwrk.presence = "visible";
admin.presence = "hidden";
mkt.presence = "hidden";
ext.presence = "hidden";
man.presence = "hidden";
user.presence = "hidden";
sec.presence = "hidden";
sysadmin.presence = "hidden";
}
else if(profiles.rawValue == "SYSTEM ADMIN")
{
sysadmin.presence = "visible";
admin.presence = "hidden";
mkt.presence = "hidden";
ext.presence = "hidden";
man.presence = "hidden";
user.presence = "hidden";
sec.presence = "hidden";
stwrk.presence = "hidden";
}

My Product Information:
LiveCycle Designer, Windows
captainkalt
Registered: Jun 18 2008
Posts: 8
found it out

In your change event script, reference the drop-down's new value as xfa.event.newText, not as this.rawValue.