what is the best way to format the yes/no option in forms? control (1 Viewer)

martinr

Registered User.
Local time
Today, 09:01
Joined
Nov 16, 2011
Messages
74
i have a boolean (yes/no) field that i need to have available for user selection in forms.
the preference is to display the chosen option as 'Yes' or 'No', rather than a check box (selected or deselected).
can te user change the option by just clicking on the form control (ie one click changes the option from Yes to No etc). so no data entry is needed, it's just a mouse click action that's required.

Is there a way to achieve this ?
 

Ranman256

Well-known member
Local time
Yesterday, 19:01
Joined
Apr 9, 2015
Messages
4,337
the check box is simple since its either on or off.
if you use text, you must make 2 selections for option boxes.
create a frame, in the frame put the 2 options buttons....yes and no
set No option value = 0
set Yes option value = -1
bind the frame to the field. (its what gets the result of the options)
 

isladogs

MVP / VIP
Local time
Today, 00:01
Joined
Jan 14, 2017
Messages
18,239
I would also use a checkbox as it's by far the easiest for end users.
However if you want yes/no, I suggest using a combo box instead
 

Users who are viewing this thread

Top Bottom