Hi everyone,
How can i set the date picker to any date, any hour and only 00 or 30 (zero minutes or 30 minutes) ?
Hi everyone,
How can i set the date picker to any date, any hour and only 00 or 30 (zero minutes or 30 minutes) ?
There may be a solution via jquery code but as I'm not a developer last time I needed such functionality I helped me with the following approach:
Now the magic is to combine those fragments to the full date and safe it to your column.
You can do so by having a formula field on your form that combines everything to a date and is connected to your column or read those fragments within a workflow and save it.
Would that be helpful?
Best regards
Enrico
with jQuery you could do it eg. following way.
configure a class for datetime control, eg. OnlyHalfHour
add following code to form's custom javascript
NWF.FormFiller.Events.RegisterAfterReady(function (){
NWF$('.OnlyHalfHour select.nf-datepicker-select:not(.nf-hours) :not(option[value="00"], option[value="30"])').remove();
})
Thank you Marian. We are going to try this solution
Hello, Marian. I'm trying use your solution , but I got problem that is i can't select hour (nothing in the dropdown ) .
so what I miss ?
Best regards!
Jayson
I'm not sure ....
have you retyped the code exactly as provided above (with all spaces, comas, etc.)?
have you configured a class for date control?
were you applying the script on minute's or hour's dropdown?
any errors on developer console?
what platform and version are you on?
Did you find a solution ? I'm looking for the same set date picker to 30 minutes interval. Any help would be appreciated
Did you get it to work?
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.