Expand my Community achievements bar.

Numeric format question

Avatar

Level 2

I am reposting this one, as I am still trying to figure this one out. I am trying to set up a form where the numeric format of one field is based on units of measure in another field. The fields are: units1 and iq1. What I want to do is have the iq1 field format for percent with two decimal places when units1 is  LS or ls or L.S. or l.s. otherwise the field should be formatted for a number with the format nnn,nnn,nnn.nn. Any help for this newbie is appreciated.

2 Replies

Avatar

Level 10

Hi,

in the change:Event of units1 add the following JavaScript:

For the initial display pattern of the field iq1 set num{z,zzz,zz9.99}.

Avatar

Level 2

Outstanding, thanks. that worked.