Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Hide field if vale is zero

$
0
0
I have seen the facility to hide empty fields from view in the Page View settings -> Hide Empty Fields, but is there a way of hiding a field if the value is zero?

I have tried adding code in the Javascript onload event, but if you have several if commands it noticeably slows down the page loading.


var ctrl_age_years = Runner.getControl(pageid, 'age_years');
if (ctrl_age_years.getValue()==0)
 	pageObj.hideField("age_years");



Is there another way?

Viewing all articles
Browse latest Browse all 2586

Trending Articles