Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

radio button and if calc...


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

Recommended Posts

Posted

I have never used a radio button before and would like some clarification of its potential use in a calculation that I am thinking of using. What I would like to do is this: have a radio button that if clicked on would be the true part of a calculation, therefore not adding the data from a field to another one for a total. Specifically it relates to remitting taxes in a vendor/seller situation. In most cases I (or my clients to be more exact) remit the sales tax themselves in sales of merchandise but as my clients sell merchandise in different locations all the time I am finding that the nifty calculation I did to separate the local taxes for their records doesn't work when the vendor insists on remitting the taxes themselves. I wanted to just add a button that indicates that this has occured and do the calculation without adding back the tax to the final net income. Is this a correct way to use radio buttons? Any ideas or calc examples you could give me? Thanks...

Posted

Rich -

If I understand your question correctly, using a radio button should be a good solution.

General notes on radio buttons

Radio buttons are no different from text fields, only that you choose which text to have in the field by the radio button rather than by typing it into the field.

By the way, to uncheck a radio button, hold down the shift key and click it.

For your solution, you will have only one radio button, and you can have it represent any text you wish: "exclude" or "no" or whatever.

Now just use the text field (via radio button) in the calculation that makes your tax calculation.

e.g.,

If(<radio button field> = "exclude", calculation A, calculation ???. If you have checked "exclude" then the calculation will be <A>; if not, it will be <B>.

Alternatively, since you only have one radio button value, you could use

If(isempty(<radio button field>, calculation B, calculation A))

or the calculation

If(not isempty(<radio button field> ), calculation A, calculation ???

Hope this helps.

Charlie

This topic is 8469 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.