Skip to Content
0
Former Member
Jun 02, 2009 at 11:26 AM

presence property works not correctly

367 Views

Hello, experts.

I have faced next problem creating my interactive PDF form.

I want to make group of objects invisible when user selects "No" in Drop-down List. Here is my code for function change on that DDL:

-


form1.subform.DropDownList1::change - (JavaScript, client)
if (form1.subform.DropDownList1.rawValue == 0) { 
	xfa.form.form1.subform.Passport.DEContent.Pass_Num.presence = "visible";
	xfa.form.form1.subform.Passport.DETitle.DETitleText.presence = "visible";
	xfa.form.form1.subform.Passport.DETitle.fillColor = "220,227,236";
	xfa.form.form1.subform.Passport.DEContent.ReleaseDate.presence = "visible";
	xfa.form.form1.subform.Passport.DEContent.ReleasePlace.presence = "visible";
}
else{
	xfa.form.form1.subform.Passport.DETitle.DETitleText.presence = "invisible";
	xfa.form.form1.subform.Passport.DETitle.fillColor = "255,255,255";
	xfa.form.form1.subform.Passport.DEContent.Pass_Num.presence = "invisible";
	xfa.form.form1.subform.Passport.DEContent.ReleaseDate.presence = "invisible";
	xfa.form.form1.subform.Passport.DEContent.ReleasePlace.presence = "invisible";
}

-


In fact i am seeing next changes: color and TitleText in object DETitleText aren`t changing at all, other input fields become inactive for input any data but their captions are still visible, same as underline properties on them. How could i make all of these objects invisible for printing and for viewing.

Regards, Nikita Tokarev.