Dulce Vargas (DulceV37)
4th Source

4th Source
DulceV37 Member since 2019 2 posts
4th Source
Posted: February 23, 2020
Last activity: February 23, 2020
Posted: 23 Feb 2020 16:12 EST
Last activity: 23 Feb 2020 16:20 EST

How to avoid Autocompleted for a Date?


I'm trying to make a Java function into an activity to write "/" automatically when I entered a Date in an input type Calendar. Example: I entered 2 digits for the month (system puts "/") I entered another 2 digits for the day (system puts "/") and finish with 4 digits for the year.

I have this function to put the "/" in the right position:


String strDate = tools.getParamValue("DOB");

if((strDate.trim().length() == 2) || (strDate.trim().length() == 5)) {

    strDate+=("/");     tools.putParamValue("DOB", strDate); }


The function works well when I entered month and day but when I try to entered the first digit for the year, the system autocomplete the date and puts another date in wrong format (yyyymmdd).

Can someone tell me how I should do to avoid the autocomplete for the year?

Enterprise Application Development Dev/Designer Studio
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.