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

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

Recommended Posts

  • Newbies
Posted

I am trying to create a script that checks a field to see if there is data, if there is data include Parentheses around the data, if not leave blank.

I am kind new to Filemaker, any suggestions would be helpful. Thanks!

Posted

Hi K. First off, if the parentheses are to represent negative numbers (accounting convention), you don't need a script. In layout mode, select the field in question, then go to Format>Number>Format as decimal>Negative>Format as>(1234).

Otherwise: might you be better off using a calc field? If the original field is called Number, your calculation would be:

If ( IsEmpty ( Number ) , Number , "(" & Number & ")" )

HTH.

Jerry

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