cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting user from editing Date/Time field manually in Adobe form

Former Member
0 Kudos

Hi,

I have an Date/Time field, which list down the calender to select date. But, along with that, it allows user to input any data manually. I want the user to select the date only from the calender and the user should not be allowed to edit the field manually. As option to do that ? I tried all avilable types and nothing seems to be fullfilling my requirement.

Thanks,

Gaurav.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Gaurav.

I was trying to find a solution for it, this is what we can do:

Create 3 fields, for e.g.: MO_UP, MO_DOWN, CLCK - Type Numeric.

Now on the mouseUp, mouseDown and Click event set some values in these fields.

Click Event : BP.clck.rawValue = BP.clck.rawValue + 1

Mouse Up: BP.mo_up.rawValue = BP.mo_up.rawValue + 1

Mouse Down: BP.mo_down.rawValue = BP.mo_down.rawValue + 1

And at Exit event of the date field check wether these field have that value or not.

If not you can give the error message, and ask the user to select through mouse.

But still there is one catch, if user click of the field and then enters manually this will not work.

I am trying to refine it, so you can also try to improve this. And let us know

Regards,

Amit Rai

Former Member
0 Kudos

hi,

In adobe forms you cannot restrict whether the user enters date from manually or from the calendar.

you can put validation on the pattern in which the user enters the date.

regards,

Sakshi

OttoGold
Active Contributor
0 Kudos

I have never seen such thing. The field is read only or can be edited manually or by selecting the date from the "dialog".

If you want to make sure the date is valid, do your own validation.

Regards Otto