These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Time format: Make user entries more flexible?

alfette
Registered: Jun 29 2010
Posts: 13
Answered

Dear all,
I'd like to do this:

If the user puts a "7" in a time field, it should be shown "07:00".

At the moment this is not the case.
If the user puts a "7" into the field, the form shows just a "7". If the user puts a "07" into the field, the form shows the right format "07:00".

I hope, this questions aren't to silly.

Best regards and thanks in advance, Alfette

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

you can use a small FormCalc script for your time field to do this.
Put it into the exit:event of the field:
if(len($) == 1) then$ = Concat(0, $)endif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

alfette
Registered: Jun 29 2010
Posts: 13
Hi,
because I'm two days off, I'll check your solution on the upcoming monday.
Thank you very much - you are a very helpful person!
Alfette
alfette
Registered: Jun 29 2010
Posts: 13
Hi,
your solution works perfect!
Thanks again very much for sharing your knowlegde.
Best regards, Alfette