Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Conditional checkbox

Featured Replies

  • Newbies

I'm creating a list layout from scratch. I want to show a checkbox that is checked if a field has a date entered and not checked if the field is empty. What's the best way to do this?

(I'm a total FMP newbie, please have mercy!)

TIA.

Bill.

One way would be to create a calculation field that would return "Y" if MyDateField was not empty in conjuction with a value list that had only the value Y. The other would be to use a calc field in conjuction with global fields that contain pictures of the checkbox.

Example file attached done in FileMaker 7. Username = admin, no password.

MyCalculatedCheckBox.zip

  • Author
  • Newbies

Great. Option 2 is exactly what I'm looking for. Thanks for the quick response.

I'm really digging FMP - what a great tool.

You could achieve just about the same result just by custom-formatting the date field, without adding ANYTHING to your file.

DateBoolean.fp7.zip

  • Newbies

Sorry to be a bit stupid but I have just looked at the file DateBoolean and it does almost what I need (I want to change text to red where membership expiry date has expired but same idea) but I can't see anywhere the option for custom formatting. Your file works and there must be something saying "if date > "" then place tick box". Can you help? Thank you in advance.

  • Author
  • Newbies

I ended up using a variation of the DateBoolean for my solution.

Put your Date field on the layout. Click Format->Date to bring up the Date Format tool. Select "Custom" and then enter the letter 'a' into the format.

Click the "Text Format...." button and select Webdings for the Font. When you go back to your form, you will see a checkmark. To get the checkbox effect, turn on all of the field borders.

I also made the field read-only in this particular layout and then converted it to a button to take me to the details layout where I could put in the actual date.

Hope this helps and thanks to all those who contributed ideas.

  • Newbies

Got it. Not quite what I need but now I understand the principle, so can adjust accordingly.

Many, many thanks

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.