Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

still-learning-
Community profile still-learning- Level 1
Job title here
Location here
0 BADGES
Level 1

Level 1

Learn more
Joined the community 07-12-2016 2:13:54 PM
Offline
Top badges earned by still-learning-
Customize the badges you want to showcase on your profile
Re: leading zero
Avatar
Level 1
still-learning-
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
still-learning-
- Adobe LiveCycle
Thanks Bruce,Someone else gave me the following and it works just fine:if (event.value) { event.rc = /^\d{5,7}$/.test(event.value); if (!event.rc) app.alert("You must enter between 5 and 7 digits.");}Do you know where I can read up on: /^\d{5,7}$/.test(event.value)Regards,JeffJeff HillLions Clubs InternationalMSC Business Analyst630-468-6759Celebrating 100 Years of ServiceLions100.org“We Serve”[ico-fb][ico-yt]

Views

396

Likes

0

Replies

1
Re: leading zero
Avatar
Level 1
still-learning-
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
still-learning-
- Adobe LiveCycle
So If I wanted 4 digits and retain leading zeros in the display I would use num{'000'9}?Where does that go on the Validate tab in the custom validation script?

Views

1.6K

Likes

0

Replies

3