Radio Button Deselect

Dear Sir/Madam,

In the data I work I’ve implanted a system so that the “Registration office” can see in a form how people have payed there guarantor. I’ve splitted this up in “Pin” and “Contant” the fields works as a radio button. Beside that Radio button there is another one that ask on what day the guarantor was payed.

In the form I implanted fields that works as followed:


temp := @DbLookup(“”:“NoCache”;“”:“”;“RotIisInsBorg”;“ContantDinsdag”; 1 );

@If(@IsError(temp); 0; @Elements(temp))


My question is how can I deselect a radio button without implanting a field next to the current Radio button.

If I implant a field next to the current Radio button I’m able to deselected it with the following code:


Sub Click(Source As Button)

Dim workspace As New NotesUIWorkspace

Dim uidoc As NotesUIDocument



Set uidoc = workspace.CurrentDocument

Call uidoc.FieldSetText("FieldName","")   

Call uidoc.refresh

End Sub


It’s just I got limited space to work with so I would rather not created a field that makes it able to be deselected. I want the field itself to be able to be deselected.

I select “Pin” but I wasn’t ment to select the guarantor so I would like to deselect it…

The field:

Name: RotIisInsBorg

Type: Radio button, Editable

External data source: NOT selected

Tab Key: NOT selected

Border syle: None

Number of columns: 1

Spacing(%) Across: 100 Down: 100

Choices: Enter choices (one per line)

  Pin

  Contant

Options selected:

Refresh fields on keyword change

Refresh choices on document refresh

Allow keyword synoyms

Thank you for your time.

sincerely,

Rowan Ruseler

Subject: ui standards for radio buttons…

… do not include a way for the user to clear the selection. The official way radio buttons work is that a choice should be selected by default, and the user can only switch to a different selection. If you don’t do it that way your system is non-standard. If there was a way without adding a special “clear” button, how would users know that was an option? You should not even have the Clear button.

May I suggest you add a new choice, “none” or “n/a” or similar, and make that the default?