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";
}
In your change event script, reference the drop-down's new value as xfa.event.newText, not as this.rawValue.