-
1. Re: How do it force a user to enter a time in a date time field??
pguerett Sep 14, 2011 5:23 AM (in response to dbjackie)If you make it a Date and Time field a calendar will popup and the user picks the date from the calendar. They cannot enter garbage. If you make the field mandatory they will not be able to submit the form until the field is filled out. If that is not enough and you want to force the entry when they tab into the field, you coudl write script on the exit event that will not allow them to get off of the field until they complete it.
Make sense?
Paul
-
2. Re: How do it force a user to enter a time in a date time field??
dbjackie Sep 14, 2011 8:39 AM (in response to pguerett)Hi Paul:
That completely makes sense... Only problem what would or could the javascript be??
I have already inserted some for the save as and print buttons sucessfully
BTW in my form the time/date field is selected and to format to show time only. In my other date fields is does show a calendar after you hit the little arrow and the user can still insert garbage.
What i would ultimately want is for the user not to insert garbage and forcing them to insert a time in the time field.
It is possible that i forgot or missed a step being as im new to Live Cycle. -
3. Re: How do it force a user to enter a time in a date time field??
pguerett Sep 14, 2011 9:49 AM (in response to dbjackie)Nope you didn't miss anything .....you wil have no choice but to write script on the exit event to check what the user ntered and validate it before moving on.
Paul
-
4. Re: How do it force a user to enter a time in a date time field??
dbjackie Sep 14, 2011 10:53 AM (in response to pguerett)Do you happen to know the script?? I dont know javascript well enough to write it...
-
5. Re: How do it force a user to enter a time in a date time field??
pguerett Sep 14, 2011 12:17 PM (in response to dbjackie)You woudl need a reg expression to test the format of what was entered. I am not very familiar with reg expressions but maybe some of the other programmer types can help out. P.S. You haven't stated the format that you will accept.
Paul
-
6. Re: How do it force a user to enter a time in a date time field??
radzmar Sep 14, 2011 1:13 PM (in response to pguerett)If you're looking for regular expressions you should check out http://regexlib.com/.
But a lot of regular expressions are often very verbose and pretty hard to understand.
You can try to make the date/time input more comfortable for the users, by using a set of edit pattern, which will convert the input into a desired format.
Here's a thread with some sample patterns: http://forums.adobe.com/message/3582785#3582785



