HTML Date Picker in Custom Input not working

Hey,
I’m trying to add a custom input to let the robot user decide a date range for the robot to analyze. I made a super simple HTML file that looks like this:

<!-- saved from url=(0014)about:internet -->
<html lang="en">
<head>    
</head>
<body>

	<label>Desde:</label>
	<input type="date" id="desde">
	<label>Hasta:</label>
	<input type="date" id="hasta">
	<button id="next" onclick="devolver()"> Next </button>
</body>
<script>
function devolver() {
  window.external.setResult(document.querySelectorAll('input[type="date"]').item(0).value + "#" + document.querySelectorAll('input[type="date"]').item(1).value);
  return true;
}
</script>
</html>

This code may not work, since I still haven’t been able to test it. What I do know is that this file works in my browser, and looks like this:
opera_x9iAdXbODa

But when I open the file with the Custom Input activity, I get this:


where I can type anything I want, which is not what I need. Am I doing something wrong?
Thanks in advance,
Matias

Hello @matias.lynch

Are you trying to open the file? Can you share the screenshot of the flow.

Thanks

I’m using the Custom Input activity as follows:


with index.html being the file I showed above.

i doubt it accept only plain html.

I’ve used this activity before, with buttons and text input, and it has always worked. I know it accepts plain HTML as it is also documented:
image
The only thing that is not currently working for me is the <type=“date”> element.

Hey, just bumping this thread since I still can’t find a solution to it.