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:
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