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 6650 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello,

I have a question about formatting a text box. I am building a database for the chemistry lab that I work in. We want to keep track of our chemical inventory.

I have a field in my database for entering in the chemical formula. I would like to format the field so that whenever a number is typed into the field it is always a subscript. I don't want any letters to be subscripts, just numbers. I'm not sure if this is possible but if anyone has an idea it would help me out a lot.

thanks

js22

Posted

Substitute(yourField;

["1" ; TextStyleAdd("1"; Subscript)];

["2" ; TextStyleAdd("2"; Subscript)];

["3" ; TextStyleAdd("3"; Subscript)];

etc.

)

I imagine you'll want this to be an auto-entry field that replaces existing data.

Keep in mind that this does not alter the underlying data, only the way it's displayed. If you export the field it will be unformatted.

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