fmStarRatingControl Add-on logo

fmStarRatingControl Add-on

LuminFire

Summary

Product Type: Add-ons

Price: Free

Last updated: 4/22/2021

Language: English

Product website

Category

Native FileMaker star rating control implemented as an addon

It’s a simple way to select your favorite and see it displayed visually.

FileMaker does not have a native star, rating, or favorites control similar to common apps we see like iTunes for rating favorite songs. We've create a simple add-on that will allow you to select your favorite and see it displayed visually through using using the Button Bar that has many desirable characteristics:

• The object automatically displays the star rating using conditional formatting.
• It’s easy to restyle for different colors.
• No special fonts, graphics, or container fields are required.
• It works across platforms with native star images that already exist in FileMaker.
• The rating value is stored in one simple number field that contains a number from 1-5.
• No calculation fields or complicated scripts are required.
• The stars can be set to zero or none by toggling the first star.
• Lists can be sorted by the Rating field.
• Each star has 1 script step that sets the Rating field to a number 1-5. The script on the first star toggles the Rating field between 1 and blank.

Here’s a little detail on how it was built. First, we created the Rating field as a Number. Then we created a Button Bar with 5 segments. We set each button in the button bar to the built-in star icon at 24 pt size. Then we formatted the button bar so there were no lines or dividers. We set one script step attached to each icon sets the value of the Rating field to blank/1, 2, 3, 4, or 5. We set the main color of the In Focus icons to grey.
Then we selected each star icon and set conditional formatting to turn the icon red depending on the value of the Ratings field. That’s it. The control can be easily copied and pasted into your solution if the Table name matches (can be changed in the sample file) and the connected numeric field named “Rating” exists in your table.

Additional resources

Claris product features

See why Claris products are the top choice for developers for their low code needs.

See features

Product resources

Get instant access to helpful resources and start creating custom apps today.

Get resources