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:
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.
I am having the same problem but the items on my form are visible at the opening of the form. These fields are visible based on the selection that the users select from the drop down list (DDL). My code is also similar to the one above but it is not working right.
I am using ES 8.2 with Acrobat Pro 8.1.3 and Acrobat Reader 9.0. Can you please help.
When we have this requirement we sometimes take the script out and put it in the calculate event of an invisible field. This way we have the script in one place, rather than an exit event and initialise event.
On thinking about this over the weekend I'm wondering if I'm going about it incorrectly.
To make the subforms hidden when I open the document I have "this.presence = "hidden;"" in their initialize event. Should I be doing this somewhere else?
I've just tested it using the Presence setting on the object palette. Going this route seems to remember the state of visibility on reopening the form.
There must be a better way of working on this. I've got hidden subforms within hidden subforms. I'm still building this form and to work on it and test it I'm going to be spending half my time changing the Presence setting on the object palette.
Unless there's a way to have hidden/invisible objects still show in Design View?
Or is the way I'm doing it -- a script on the hidden object checking the state of the button that controls its visibility -- the way to go about it.