Hiding fields when drop down selected


hi

 

i have drop down box 3 choices - telephone/writing/not applicable

 

if telephone chosen want "text8" field box show
if writing "test7" show

if not applicable chosen - want neither box show....


this below isn’t working  - when select "not applicable" still “text 8”
box displaying (but not “text7” box) (i brand new this) – wrong
please!!

 

thanks

 

if (event.value == "not applicable")

{

this.getfield("text8").display
= display.hidden;

this.getfield("text7").display =
display.hidden;

}

else if (event.value == "telephone")

{

this.getfield("text8").display =
display.visible;

this.getfield("text7").display =
display.hidden;

}

else if (event.value == "writing")

{

this.getfield("text7").display =
display.visible;

this.getfield("text8").display =
display.hidden;

}

you need use exact field names. in post, used "text7", "test7", , "text 8", "text8", , "text8", suspect there's typo in code.



More discussions in PDF Forms


adobe

Comments

Popular posts from this blog

Adobe Refresh Managerについて

Error during signature verification. Signature contains incorrect, unrecognized, corrupted or suspicious data. Support Information: SigDict /Contents illegal data