setting control property to read only at runtime

Ken

Active Member
Is there a way to set a control to read only depending on a radio button selection?

I'm creating a custom application that depending upon the radio button chosen will allow the user to either enter a search over a Work Order number or LITM field. If the radio button for one is chosen I want the other field to be set to read only.

I can fall back to using the system function to disable the control, but that greys out the text,as well as the name of the control,which I don't want to do.

Thanks for your help.
 
Ken,

One option might be to disconnect the control text from the control field. Then when you disable the field the text stays black instead of going to grey. Another option could be putting a second field under the first and then hiding and showing - but that seems like a lot of work.

Ben again,
 
Ben,
Thanks for the reply. I think doing the disconnect is a great idea.
That way the user can easily see the field name, and though the text in the edit box is grayed out, it is still legible.
 
Back
Top