Is it possible to render a geocortex form item programmatically in a custom module?
I am trying to find a way to use a date input picker in a custom module and keep running into issues in getting it to work. I know that the geocortex forms include the date time form item and I can create a new DatePickerFormItem in my custom module, but I am not sure how to attach it to my module view. Anyone else done anything similiar?
There seems to be a known bug that won't let me use the jquery ui datetime picker due to some conflict with how it is being used in the geocortex framework. I have tried loading other libraries via inserting external libraries in a module via jquery ajax script calls, which has worked for other types of components, but the scripts don't seem to be loaded or not in a scope I can use in the custom module.
--Marc
0
-
I found a workable option and thought I would pass it on in case anyone else ends up here. It looks like the kendo ui is already rolled into the base viewer framework, so I was able to render a datepicker from kendo.
https://demos.telerik.com/kendo-ui/datepicker/index
$("#startDate").kendoDatePicker();
--Marc0
Please sign in to leave a comment.
Comments
1 comment