I have a form created where items are invisible at the opening of the document. They open and close depending on the choices the user makes. It turns on visible and invisible. I have drop down lists that control which stuff is visible, but the only problem is when the customer saves it and we open it everything becomes invisible as the initial setting. I need something to check the values on those things and then make them visible to see and print without us doing anything. Here is the simplest one. to give you an idea of what I'm doing.
This java script makes BidPassword visible or invisible:
Main.Form.BidReqPass::change - (JavaScript, client)
switch(xfa.event.newText){
case 'Yes':
BidPassword.presence= "visible";
break;
case 'No':
BidPassword.presence= "invisible";
break;
}
I have tried:
Main.Form.BidPassword::docReady - (JavaScript, client)
if (BidReqPass.rawValue= "Yes") {
BidPassword.presenc = "visible";
} else (BidReqPass.rawValue= "No") {
BidPassword.presence= "invisible";
}
but it doesn't work. I think I am close, but I can't figure it out exactly. I'm on PC and ES 8.2 with 9Pro. Any help is appreciated. I don't know if I should put the script on the BidReqPass (item controlling if BidPassword is visible) or BidPassword (item changing) and how to do if I can do it.
Thank.