Auto-fill Date in Activiti App

cancel
Showing results for 
Search instead for 
Did you mean: 
jarvisaltrin
Member II

Auto-fill Date in Activiti App

I am new to Alfresco and I am working with Alfresco Process Services (powered by Activiti) v1.9.0. 
I have a user task which refers to a form and in that form I have a Date field (Approval Date as shown in the image below). I want to auto-fill this date field with the current date. Is there a way to do this? Is so, how?

3 Replies
rallegre
Alfresco Employee

Re: Auto-fill Date in Activiti App

Hi,

you can select the date field and via the javacript tab add the js code to display current date.

Here is an example not doing that but still giving you an idea.

The other option would be to calculate the current date in a previous task and then map the form field with the calculated value.

Hope it helps

Raphael

jarvisaltrin
Member II

Re: Auto-fill Date in Activiti App

Hi Raphael,

Thanks for the clarification. Is there any working example (weblink to similar task) which you could share with me?

mdtabrezmca
Established Member II

Re: Auto-fill Date in Activiti App

Hi,

   Thanks for the above code and. i would like implement the same functionality in ADF how can do this.