Re: readonly text entry
[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]
Posted by Vishak on September 1, 2000 at 0:39:15:
In Reply to: Re: readonly text entry posted by pdii on August 31, 2000 at 1:48:10:
All you want to do is write a simple javascript function. function toggle_field { var getcheckboxVal = document.forms[0].cbox.value; If (getcheckboxVal =='Y') { document.forms[0].txtfld.READONLY=true; document.forms[0].txtfld.Disabled=true; } else { document.forms[0].txtfld.READONLY=false; document.forms[0].txtfld.Disabled=false; } try this readonly or disable ..i bet it will work. you should call this "toggle_field" function in your checkbox "onClick" event. Let me know if this works for you. Vishak Vishakbs@hotmail.com
Follow Ups:
|