While using a HTML field is not optimal, it is still the best compromise I see since changes can be local to the app. However, if the same field is used in more than one place, you will need to have multiple copy of the same logic violating DRY principle.
This is what I was able to accomplish using HTML:
2 Likes