How to check validity of icon? Rich text icon?

Certified Senior Developer

Short of creating a constant that contains all valid icons and richTextIcons (which is suboptimal given that icons are updated between Appian versions), is there a way to make icons "invalid icon"-safe? 

i.e. Checking if an icon is in the list of supported icons on a given appian version before passing it into icon or richTextIcon?

Context

We have a (larger, complex) application that dynamically determines which icon to use in a richTextDisplayField.

One can be thorough and investigate the root cause of why invalid values are being populated but I would like to be thorough and double-check.

Thanks!

  Discussion posts and replies are publicly visible