Help

2

Time picker in field

Avatar
Nehal

Hi,

I want to put time picker for a field. I dont want to use field with float type and widget=float_time. There is no validations at all. I want to pick timings in 12 hr format with PM and AM. Is it possible to do ?

Avatar
Discard
1 Answer
2
Avatar
Solanki Shamji
Best Answer

Hello,

May be this will helpful to you.

Take one char field in xml and give id to field.

Now add below js library in your module for time picker.

  http://amsul.ca/pickadate.js/

And give path in web extend from xml.(picker.time.js path)

and give this in your js file

$('#id given in xml').pickatime()

 This is not full code you have to little work on it.

Thanks.

Shamji


 

Avatar
Discard