Quantcast
Viewing latest article 34
Browse Latest Browse All 1476385

[Forums] Can't get manually input date from Local Variable when DatePickerSetEditableInput use

Hi @Junichi Katano

In order to clarify and try to help, are you trying to set the variable at the input OnChange? Assigning based on press Enter key is not an option, that's it?

Let me share some notes about this pattern, it has been created on top of Flatpickr library, which have that behaviour based on press the Enter key due to the validations, in order to avoid doing them each time as user enter a new character in the input. 
Another thing related with this implementation... in order to enable the ability do deal with Date Types and take the advantages of the OutSystems platform (validations) we're using an approach this library have, that is related with the creation of a new input (clone) and hide the real one (added by platform), this way library will deal with the "translations" (from Date Types into String Type automatically). That's why the local variable is not being properly assigned at the onInputChange moment, once library will only trigger that assign once you press Enter key (as mentioned above).

Let me know if you're searching specifically for the behaviour at the onInputChange event, and I'will try to share a solution for that case.

Cheers,
JR


Viewing latest article 34
Browse Latest Browse All 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>