Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Field type % - I want to have a filler be required to enter in a %

Avatar

Former Community Member

or if they enter in a decimal it to display as a percent. if they put in 7.125 then it would display after enter...7.125%.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You should be able to use a display pattern to do this, something like;

num{zzzz9.999'%'}

(If you don't put the percentage sign in quotes then value will be multipled by 100.

Bruce

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

You should be able to use a display pattern to do this, something like;

num{zzzz9.999'%'}

(If you don't put the percentage sign in quotes then value will be multipled by 100.

Bruce

Avatar

Former Community Member

Thank You. what are the zzzzzzzzz for?

is there an source to find script for things like this and other functions that are not readily availalbe within LIveCycle?

Avatar

Level 10

The 'z' omits any leading zeroes, the '9' displays the digit even if zero and anything in quotes is treated as a literal.

The picture clauses are described in the XFA Specification, http://partners.adobe.com/public/developer/xml/index_arch.html

Avatar

Former Community Member

thanks again. any ideas where to learn more about this type of code? or are these scripts?

Avatar

Level 10

Look in chapter 26 "Picture Clause Specification" of the document at the link in my previous response.  There's lots of examples and clearly discribed.