Link to home
Create AccountLog in
Avatar of Andrew
AndrewFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Livecycle Designer - Show/Hide subforms based on selection of a dropdown

Hi Experts

I am in the process of designing an interactive pdf, and depending on a selection from a dropdown at the top of the first page, I want to show/hide different subforms later on in the document.

I have tried the following script attached to the 'change' event without success:

form1.Page1.DropDownList1::change - (JavaScript, client)
if(xfa.event.newText == '3'){
sub3.presence = "visible";
sub2.presence = "hidden";
sub1.presence = "hidden";
sub4.presence = "hidden";
}

I cannot figure out where I am going wrong.

Thanks Andy
SOLUTION
Avatar of nap0leon
nap0leon

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Andrew

ASKER

Started my form from scratch and realised I had incorrectly linked my fields.