Jump to content
Server Maintenance This Week. ×

Is there a way to determine the colour of an object?


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

Recommended Posts

I have a CMS in Filemaker where the fields that remain to be filled in by the user are highlighted in red through conditional formatting. Is there a way to determine which fields on a layout are coloured red, so that when the user tries to exit the record I can check that all the necessary fields have been filled in?

Or is there another way to organise this?

Many thanks in advance,

W.

Link to comment
Share on other sites

Well most likely the same condition that you use apply the conditional formatting will hold true for your check.

In this case is it most likely IsEmpty(Field). Therefore you can check if every field is empty.

A quick way to make sure that all the fields are not empty is to add them up.

If [ Sum ( IsEmpty (Field1); IsEmpty (Field2); IsEmpty (Field3) ) ]

Show Custom Dialog [ "Not Done" ]

Else

Do next routine

End If

If any of them are empty, then it will return a number so the boolean check of If will be true.

You may also want to use Trim to make sure that they didnt type a space as an extra precaution.

Link to comment
Share on other sites

True that would work better.

However it still doesnt give an opportunity to check for unwanted spaces so I would still recommend perhaps using Trim ().

Link to comment
Share on other sites

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