We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.
For more information around feature requests in the Cireson Community click here.
Comments
Agree. They should be seperate. We are considering removing offerings with the current date/time options.
Yep need date and time to be their own fields
Also, you can add controls for just dates in your form JSON:
or this (substitute ChangeRequest for other form types, if you like):
However, it seems I was a bit lazy in copying these lines of code. There is a better way of writing this:
Verified to work on the RO form.
http://docs.telerik.com/kendo-ui/api/javascript/ui/datepicker
http://demos.telerik.com/kendo-ui/datetimepicker/index
Can't seem to get this to work, the original option you set seems to work fine
I just want to point out one thing that I have also done in the past, but have stopped doing:
This does work sometimes. If the timing is right, you may never notice the issue with it. However, this syntax actually creates a new kendo control from the target element, in addition to the one that already exists. This often works in spite of itself, until it doesn't. This syntax is what you see most frequently in their docs, because they assume you are authoring the page in your new app. When you are working with the Cireson portal, Cireson has already created the Kendo control for you, though (but perhaps not before your custom script runs...). The way to set a property on an existing kendo control is documented at https://docs.telerik.com/kendo-ui/api/javascript/ui/datetimepicker#methods-setOptions:
(The above is copied from their page directly)
This will (correctly) fail if it is not targeting the exact element that was already instantiated as the intended Kendo control. If I target an input element that is not being used by kendo or is not this type of control, this statement will fail (which is actually good that it does, but a bit frustrating in the moment). This example uses a method to set the "min" option, which you could swap for "interval." My example directly sets the value, so it is entirely possible that another function of mine is making this work and my code above is silently failing. Something for me to look into.
But my main point is to use $('#myElement').data('typeOfKendoControl').doStuff() if you want to target an existing control, which you do in this portal (unless your custom code created it).