Jump to content
Server Maintenance This Week. ×

Dynamically Set SVG Icon


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

Recommended Posts

Is it possible to dynamically set a FM .svg icon?
ex. case value = 0; svgIconStarWHITE; svgIconStarBLACK

Looking to take advantage of the new .svg feature. I'm currently just using character "charms" to accomplish this.
Using the data formatting "boolean" option, show zero ☆ ; non zero ★

But this is limited to a small group of silly characters and most don't have a comparable black vs. white version. For example, I would like to use a heart icon but can't using charms.

 

Any ideas on this? Thanks

Link to comment
Share on other sites

No workarounds.

However, if you are using FM supported SVG files, you can change the color of the icon, based on conditional formatting.

This can take you some of the way...

If you want to replace the entire icon, you need to other techniques, which could be to have conditional hide on buttonbar segments or use of container fields. However, SVG files is not supported in container fields, so if you go that route, you will need to create e.g. png versions of your icons.

  • Like 1
Link to comment
Share on other sites

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