NetTalk Central
		NetTalk Web Server => Web Server - Ask For Help => Topic started by: Devan on April 10, 2012, 06:17:05 PM
		
			
			- 
				I am sure there is an easy way to do this, but I've tried a few things and haven't been able to stumble upon the answer.
 
 It's pretty simple really - I have a Yes/No checkbox field on a form, and I want to be able to either hide or display a field directly below that depending on whether the user ticks the checkbox or not.  In real time.
 
 Is this possible with NT6?  I am thinking yes, because of all the jQuery goodness, but if I set a condition on the second field, and change the 'Client-Side' options in the checkbox field, it does not redraw at all.
 
- 
				Ok - it was a case of Stupid Programmer Error...  I had set up the conditions etc. on one set of fields, and was testing another set of fields in the browser!!!
 
 Thats what you get for having 200+ fields on a form and not having much sleep the night before...  ::)
 
 
 One tip though, I found out you have to test on the Session Value of the variable, and not the variable itself, so for the 'Hide Condition' of the second field, if you use:
 
 VAR:CheckBoxField=0
 
 it won't work, whereas:
 
 p_web.GSV('VAR:CheckBoxField')=0
 
 works perfectly!