Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting a checkbox

Status
Not open for further replies.

bubarooni

Technical User
May 13, 2001
506
US
Hi,

I am using Adobe Designer 7.0 to design a form.

The form has a checkbox and a textfield that is set to hidden. When a user checks the box I want the hidden field to show.

I've tried the checkbox's click, mouseup and mousedown events with no luck. This (and about 23 other tweaked versions of it!) is the code I'm trying in the events:

Code:
----- F.P1.CheckBox4[18]::mouseUp - (JavaScript, client) --

if (this.rawValue == 1) {
	F.P1.HiddenF1.display = display.visible;
	}
else{
	F.P1.HiddenF1.display = display.hidden;
}

Am I on the right track but just writing terrible javascript?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top