customize date/time field

Avatar

Avatar

Johannes_Lehnin

Avatar

Johannes_Lehnin

Johannes_Lehnin

21-04-2009

Hi,

I'm thinking of changing the date/time Field to specific needs,  before I start if this object is script/customizable.

eg:

  1. is it possible to show the clickable symbole even when the focus is not set on the field?
  2. is the appearance of the calendar popup scriptable?
  3. is the icon which appears changeable?
  4. where should I start if I decide to create a custom field?

Workaround now:

I made a textfield + button which looks like the symbol of the popu pcalendar

and on click I hide those fields and set the dateField visible + setFocus on it.

problem I have to click once more on the symbol to open the calendar popup.

regards

Johannes

View Entire Topic

Avatar

Avatar

Johannes_Lehnin

Avatar

Johannes_Lehnin

Johannes_Lehnin

22-04-2009

hi paul,

this is the script which is executed by clicking on the fake button.

    helper.presence = "hidden";
    datum.presence= "visible";
    xfa.host.setFocus(datum);
    t.datum.execEvent("click");

but even if I fire the click event, the calendar does not open.

It only opens when I click on the additional symbol of the Date/Time field.

regards

Johannes