Expand my Community achievements bar.

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.

Creating custom Numeric Field pattern with text

Avatar

Level 3

I am attempting to create a validation pattern for the Numeric Field which will accept:

232000

And have the formatted value display:

232,000 KM

Obviously, the program will handle the:

232,000

display pattern, and that the money pattern will accept the dollar sign text symbol.

But... how can I get the display to show:

232,000 KM

when a string of numbers is entered. I also need the formatted value for use elsewhere within the document, so, the formatted.Value must return the

232,000 KM

string.

thank you...

1 Reply

Avatar

Level 10

Hi,

You can add text strings to the display pattern, inside single quotation marks/apostrophes. For example:

num{zzz,zz9' km'}

This will display:

10, as 10 km

232000 as 232,000 km

Example here: https://acrobat.com/#d=ZtMHjwuMyDhXOVzbBqzHSA

Good luck,

Niall