I have a form that needs a little VBScript tweeking, I think.
I have an Option button with a properties label of "OtherOption". Next to it on the form I have created a text box with the properties label of "OtherInfo".
There are several other Option buttons on the form.
What I want to be able to do is to have the "OtherInfo" text box be enabled only when the "OtherOption" option button has been clicked, otherwise the text box should be disabled if any other Option button is selected.
If someone can guide me to a reference place where I can learn how to do this trick, or can help out, I'd be greatly appreciative.
I have set the default of the OtherInfo (the text box)to disable and I tried using coding like this:
Private Sub OptionOther_onClick() OtherInfo.Enabled = -1 ****where -1 = True End Sub
when running the form, the text box does not enable when I click on the OptionOther radio (option) button.
The reading that I have done with regards to writing a script for Microsoft Outlook only mentions being able to use Visual Basic, VB Script, Visual Interdev and some other seemingly MS based software.
If you know that javascript is a supported scripting language within Outlook, then I could try the script that you wrote.
Thanks for the reply as I'm sure that I can still put it to good use if not on this mission.
function checkIt() if ((document.thisForm.c1.checked = true) or (document.thisForm.c2.checked = true)) then document.thisForm.c3.disabled = false else document.thisForm.c3.disabled = true end if end function
function resetIt() document.thisForm.c3.disabled = true end function