Quantcast
Channel: Adobe Community : Popular Discussions - Acrobat Macintosh (read-only)
Viewing all articles
Browse latest Browse all 6300

Show/Hide buttons using java script...

$
0
0

I would like to use a list box to select which buttons are visible.  I found the following script on another page and tried to make it work for my

 

situationif((getfield(class select").value=="10th Grade English")

{

getField("competency 10").display=display.visible;

getfield("objective 10").display=display.visible;

}

else

getField("competency 10").display=display.hidden

getField("objective 10").display=display.hidden

 

I named the list box 'class select' and I have 2 sets of buttons, one set for competency and one set for objectives.

 

I keep getting an error.  Basically I would like this too happen.  When I select 10th grade english in the list box the competency/objective buttons for 10 grade english become visible.  When I select 8th grade english the competency/objective buttons for 8th grade english become visible.  I am using a button with popup window to populate a text field.  I have created buttons for 8th grade and 10 grade and I would like to only have the one I need visible when I need it.  I was going to set the buttons over top one another and let the use the same text field when visible.  If there is another way to do this I'm open to suggestions, but it seemed easier to just make my buttons visible/hidden.  I'm sure I've screwed something up I just don't know what 


Viewing all articles
Browse latest Browse all 6300

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>