Hi Guys
I hope someone could give me some pointers or sample code on how to hide multiple rows on selection of a various values from a dropdown list.
For example, in the dropdown list there are value1, value2, value3, value4 and value5. When either value3, value4 or value5 is selected, same number of rows that include label and field on the Add/Edit page will hide.
I used the following method, but it only to hide one row on one value selection. I appreciate it if someone could help me on this.
============
- on html page, add 'id=penthouserow' to 'penthouse' column.
add the following script on JavaScript Onload on Event tab:
// hide penthouse type=Industrial
var ctrlType = Runner.getControl(pageid, 'types');
//target row to appear / disappear
var penthouserow = document.getElementById("penthouserow");
ctrlType.on('change', function(e){
if (this.getValue() == 'Industrial')
{
penthouserow.style.display = 'none';
}else{
penthouserow.style.display = ''; }
}
);