Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

show hide multiple fields

$
0
0

Hi, I want to have a checkbox, that if selected hides several fields. By default the fields are visible.

 

I have a small script that does not work. I renamed all the fields I want hidden with a pec. prefix. (pec.Firstname, pec.Address)

 

var Hidepec = (event.value == "No");

this getField("pec").hidden = HideUserInfo;

 

Any ideas?


Viewing all articles
Browse latest Browse all 12130

Trending Articles



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