Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a Radio Button that displays oz and gram.

How can I format the fields from oz to gram when switched? Is it a calculation in the field itself?

Thanks

Posted

Radio buttons contain the text whatever is selected. So, if gram is selected, the field contains the word, "gram."

Posted

Radio buttons contain the text whatever is selected. So, if gram is selected, the field contains the word, "gram."

Thanks,

yes but I need to figure out the calculation. The Radio buttons are like a preference and once clicked between ether entrie the field should display the proper weight in oz or gram. A weight conversion.

Posted

See two conversion examples in the attached file.

Hint: always keep your amounts (numbers) and your units (text) in separate fields.

Great thanks for the file works great. I just wonder, there is no way to just use the amount field and the Unit field. It cant be done by a calculated value instead of a calculation field?

Thanks for the help. =)

Posted

Not really. You need to know FROM which units you are converting. You could use a Text field in the form of "###g" or "###oz" - but then you wouldn't be able to summarize it.

Posted

That is, unless you use a hack.

That is, unless you use a hack.

Awesome thats what I was looking for. What was the hack?

Thanks a lot!

Posted

The hack is using Get ( ActiveFieldName ) with the field name hard-coded as into the formula as literal text. If you rename the field, it will stop working - until you fix the formula to reflect the change. Not a pretty method, but it will do in a pinch.

Posted

The hack is using Get ( ActiveFieldName ) with the field name hard-coded as into the formula as literal text. If you rename the field, it will stop working - until you fix the formula to reflect the change. Not a pretty method, but it will do in a pinch.

Works great. Fixed my problem. Thanks a lot!

T

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