Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
I have a decimal field in a form that I need to format as a currency field. I am using the num.currency display pattern and this works great since it will format the $ sign to the front or back depending on the language being English or french. The only problem is that I have a requirement to always display the decimal places even if they are 0. So for instance I need to show 200.00 as $200.00 if the language is English and 200,00$ if the language is French. I have tried a display pattern of num.currency{$zzzzzzzzzzzz9.99} but it will only show $200 in english and 200$ in French.
num{($zzzz9.99)} will always show the decimals but it will always keep the $ in the front even if the language is set to french. That is why I want to use num.currency instead. I need the $ to show at after the number if the language is set to french. num.currency will do this but it does not show the 200 as $200.00 but instead shows it as $200. It will show 200.21 as $200.21 though.