You are viewing limited content. For full access, please sign in.

Question

Question

Trying to put a time selector into a form?

asked on December 4, 2015 Show version history

I'm new to LF and JQuery, would someone be able to help me with this? I found this post, but am still struggling. All I'm looking for is the basic example from this site (with 15 minute intervals instead of 30). Help would be greatly appreciated!

 

Thanks,

David

0 0

Answer

SELECTED ANSWER
replied on December 4, 2015

Your code looks to be fine except where you have "http://server/forms/js/jquery.timepicker.js", you need to put your forms server name in there and make sure that you downloaded the "jquery.timepicker.js" file and that it resides on the forms server in the folder "c:\program files\laserfiche\laserfiche forms\forms\js".

1 0

Replies

replied on December 4, 2015

Is this what you are looking for?

$('#stepExample1').timepicker({ 'step': 15 });

That should set the time intervals to 15 minutes. Can be of better assistance if you can give us some more details.

1 0
replied on December 4, 2015

Sorry! I'm honestly not even sure where to start. I have a single line entitled "Start Time" with the CSS class "starttime". I'm not sure what code I need to put where to get this to work..

0 0
replied on December 4, 2015

Can you share a screenshot of your form and your code?

0 0
replied on December 4, 2015

I really don't have anything. I've tried various codes but can't seem to get them to work. Here is the single line with the CSS class:

 

I don't really have any code yet because I'm not sure what I need to do:

 

0 0
SELECTED ANSWER
replied on December 4, 2015

Your code looks to be fine except where you have "http://server/forms/js/jquery.timepicker.js", you need to put your forms server name in there and make sure that you downloaded the "jquery.timepicker.js" file and that it resides on the forms server in the folder "c:\program files\laserfiche\laserfiche forms\forms\js".

1 0
replied on December 4, 2015

Perfect. I will work on that today. Thanks again for the help Chris.

0 0
replied on December 4, 2015 Show version history

Got it working. Your instructions were perfect. Thanks!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.