Jump to content

This topic is 2978 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi all,

How do you set up a checkbox so that only one value is set such that selecting another value will clear the current value.

Posted

First, you should format the field as a radio button set. Checkboxes are intended for multiple selections.

However, since even radio buttons allow multiple choices to be selected by holding the Shift key, make the field auto-enter calculated value (replacing existing value) =

RightValues ( Self ; 1 )

 

Posted

Comment, that will include a return in the field. Wouldn't it be better to use getValue ( self; 1) ?

Or

getValue ( self ; valuecount( self))

Posted
9 minutes ago, BruceR said:

that will include a return in the field.

Yes, it will. I am not sure it will cause any problems, but it is certainly worth mentioning.

 

10 minutes ago, BruceR said:

Wouldn't it be better to use getValue ( self; 1) ?

That wouldn't allow selecting another value.

 

Posted

Thank you for the information BruceR and having checked, as comment said, the return does not present a problem that I can see.

Posted

Not sure what that means.  You would have to discuss how you use this field in perhaps reports or other operations or perhaps in merge layouts, etc. Or for instance, Find operations, where an exact match search would fail because the field contains a return.

This topic is 2978 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.