Focal Point
To reset the drop down

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9201001282

April 28, 2008, 09:19 AM
Shru
To reset the drop down
hi,

I am new to javascripting. I am facing as issue of resetting a drop down. I have four drop downs. One of the drop down has values which are hard coded as WTD, MTD and YTD.The next drop down has values 2007 and 2008.When I select WTD and MTD the next drop down must be greyed and the values should be populated when i select YTD only.The issue is when I select MTD, the drop down is getting greyed but when i hit the reset button, the drop down is still greyed. Can anyone help me on this? .


769 Excel,PDF and HTML
April 28, 2008, 09:44 AM
Tony A
How are you "greying" out the combo boxes? are you disabling them or just changing the colouration?

Either way you will need to change the on click triggered event for your reset button to call a routine that undoes the effects you have made.

You can do this via an "onclick" event on the reset button or change the type of the reset control to "button" and then use the onclick event for this. However if you use the latter option then you must remember to call "form.reset();" within the onclick event.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
April 29, 2008, 04:44 AM
Shru
Thanks Tony. That helped. Smiler


769 Excel,PDF and HTML
April 29, 2008, 05:48 AM
Tony A
Always willing to assist someone who will take advice and run with it.

Good luck

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10