Ask the Expert

Trapping the on-click event of a radio button

I am developing a Lotus Notes client application. One form contains two radio buttons. When you click on that radio button, a small dialog box should open. How can I trap the on-click event of the radio button in the client, or show the dialog box in the on-click event of the radio button?

Assuming that clicking the radio button will change its value, you can use the onchange event of the field to capture this. However, I feel that a more desirable UI would use "refresh on keyword change" in conjunction with hide formulas or field- enabled formulas.

Take the fields that you would have put in the dialog and put them on the main form. Have them hidden or disabled (disabled is better) when the radio field does not have the right value to use them. That way, people can see and edit the values of those fields without having to change the radio field twice.


Do you have comments on this Ask the Expert Q&A? Let us know.

This was first published in February 2006

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: