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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Need help with exit event populating text field


Level 1


I am new to this and I need help with having a text field in a table (cell 😎 populate with the current date when the user finishes choosing the date in a different cell (cell 4) that is a date/time field. Cell 4 is using the default date formate (e.g. May 11, 2012). It does not matter the format for cell 8 as it is just for the manager to track when the supervior has entered the date in cell 4. Cell 4 would not be deleted once value entered. I have tired a number of scripts and none seem to work although I receive no error warning either. The current script I have tried is:

form1.Main.tblWorkOder.Row1.Cell4::exit - (JavaScript, client)

var v_day = form1.Main.cell8.rawValue;

var v_day = DAted.getDate();

have also tried: this.rawValu = getDate() for the second line and it did not work either.

2 Replies



Try following steps:

To add current date fields

You can use a date/time field to automatically show the current date by using the Runtime Property option in the Value tab of the Object palette.

Note: When using a current date field, the date updates to reflect the system's current date each time a user opens the form.

  1. In the Object Library palette, click the Standard category and drag a Date/Time Field object onto the form design.
  2. In the Object palette, click the Value tab and select Calculated - Read Only from the Type list.
  3. Select the Runtime Property option.
  4. View the form in the Preview PDF tab.

For more information, please refer to following article:


Level 1

Thanks for your reply but that is not what I am asking to do. I do not want it executed at run time but when the user clicks on the date/time field in cell 4. The manager wants to track when the user is populating this field. Part of the form will be filled out (it is for work orders) the rest of the form will be done after the work is completed. Cell 4 (date/time field) is populated with the date the work was completed. Cell 8 needs to show the date Cell 4 was populated (clicked). That is why I showed the script I have tried in my original post that I thought would populate cell 8 when cell 4 is clicked but it does not work. Do you know the correct script to make this work. Thanks