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

Time field handles 1- & 2-digit times differently

Avatar

21-10-2008

I'm using version 8.2.1.3144... and I'm creating forms with time fields.



When I enter a single-digit number, like "3," in the pdf and hit Tab, the number is displayed as is: "3"



However, if I enter a 2-digit number, such as "11," and hit Tab, the number is displayed as "11:00 AM"



I've tried a range of display/edit/validation/bind settings (including removing all settings) to no avail. I'd really like all times to display as 3:00 or 11:00 with no AM/PM. At this point, though, I'd be happy if they would just behave consistently.



What gives?

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

21-10-2008

In the validation patterns you can control what the user can enter (the edit pattern) what the user sees (the display pattern), what is put into the data file (the data pattern) and what is validated (the Validate pattern). The pattern consists of hh:MM:SS A. If you use capital H then it will display the input as military time (i.e 3:00 PM will be 15:00). So a valid pattern will have hh:ss at a minimum.