Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Date/Time field object with fixed "drop down button"


Level 8
Level 8
Hi all,

I am trying to satisfy a customer which wants the drop down button that appear when you click inside the date/time field to be there always, not just when the user clicks inside the field. Can this be achieved and in this case how?

Thanks in advance


4 Replies


Level 10
Nope ...the drop down button will only appear when there is focus on the field. That is the way the control works.


Not applicable
Hi, I wanted the button always visible too but I couldn´t do it so far ... also, talking about date field, I´ve been trying to lock the field so it can be edited by clicking the dropdown button only, and not by keyboard input...

I have been trying many things on the 'change' event but I still need the script to capture keyboard events ( for what i have found out, theres only a command to detect arrow key actions when you are inside a dropdown menu, but this is useless)

anyone has managed to do this?


Not applicable
ok, problem solved, didnt know the 'newText' property:

just writing this on the change event of the date field:


if (xfa.event.newText != null && xfa.event.newText != "")


var filter = /^[0-9][0-9][0-9][0-9]\/[0-9][0-9]\/[0-9][0-9]$/;

if (!filter.test(xfa.event.newText))

xfa.event.change = limpito();


function limpito(){

xfa.event.newText = "";





Level 8
Level 8
Hi again Paul,

That is just a pity that you can't have the drop down button there always, however I have to deal with it in some other manor then.

I would really like this to be changed some day 🙂

BTW: Senators rule...


Kim Christensen

Dafolo A/S