Unable to add event listener on DatePicker in Forms



已于 2023年11月15日 发布

Hello,

One issue I have encountered since I have been working with custom javascript and jquery in Forms is that the datepicker (Date field) does not trigger any events that I pass to it.  Other input fields can trigger events like "keyup", "change", etc. but the datepicker does not.

For example the following code will not execute:

let datDepartDate = document.getElementById('request_custom_fields_1260825973750');
datDepartDate.addEventListener("change", someFunction);

where "request_custom_fields_1260825973750" is a Date field.

Input fields work fine but not the Date field.  Why is that?

 


0

3

3 条评论

登录再写评论。

找不到所需的内容?

新建帖子