Can't set date for input date selector

Hi,

I’m trying to set a date for my form and it doesn’t set the date for my form in IE

here is my code

WebUI.executeJavaScript(‘$(“input.form-control input-date[type=date]”).val(“02/07/2018”)’, [])

Any help would be great?

Thanks,

Liezl

Hi Liezl,

WebUI.setText keyword does not work for you?

It doesn’t work for IE, because its a pretext it puts in weird values like instead of 2018 it’ll put 20018

Hi try this WebUI.executeJavaScript(“document.getElementById('your date object by ID ').value = ‘01/08/2018’”, null)

It didn’t work, it changed it for a second but then reverted back to today’s date.