Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Changing Display Patterns dependent on other fields

Avatar

Former Community Member
Hello,



Is it possible to change the display format of one field depending on what is selected/entered in another field?



I.e. we offer two types of discounts, a percentage and a monetary. One requires the zz.zzz% and the other a $zzz.zz format. The display pattern will depend on another field which the user indicates which form of discount is being applied. I would like to combine this all into one field. Is this possible?



I've tried the Format() function, but am having trouble with it.



Thank you for your help.



-Robinson
0 Replies