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

Issue: Filled subform hidden when form reopened

Asiante
Registered: Aug 20 2009
Posts: 32
Answered

Hi,

Maybe someone knows solution of this problem.

My form has subform which is hidden unless the checkbox is checked . To achieve this effect I used following code for my checkbox. (For click event)

----- form1.#subform[0].Basic.Row1[1].conference::click: - (JavaScript, client) --------------------

if (conference.rawValue==1)

conferenceform.presence = "visible";

else

conferenceform.presence = "hidden";

It works but when I submit this form or reopen it, filled subform is hidden (but checkbox is still checked). I can view it after I uncheck and again check checkbox.
It should be visible after reopened.

Can anyone help? Maybe different type of event?

PetafromOz
Registered: Jun 8 2009
Posts: 230
I really don't know if this is enough to fix your problem, but it appears to me that you've got some syntax problems there. I think you need some curly brackets, like this below...

if (conference.rawValue==1)
{
conferenceform.presence = "visible";
}
else
{
conferenceform.presence = "hidden";
}

You might also be better off using the 'mouse down' event. I must admit I'm clutching at straws a bit there, but sometimes, it's those tiny things that make a difference. The Gurus of this site may disagree with me, but it could be worth a try.

Hope it works, Peta

from way... underground at Parkes - central West NSW - Australia

Asiante
Registered: Aug 20 2009
Posts: 32
Wow it worked!!

Thank you so much. I was afraid that I will have to change it completely.