How can I auto fill the current date in a datepicker widget?

1
0
-1

Hello.

I´m using Bonita 7.3.2 and I need to auto fill a datepicker widget with the current date.

There is some way to do this automatically?

Thanks in advance.

Regards,

Geovanny C.

2 answers

1
0
-1

I hope it works for you

1
0
-1

Hi Geovanny!

How are you?

You must create a variable of type "date" in the BonitaStudio and assign it as the default " Now" value.
Then on the form you create a "External API " variable called " get_today " and take the following code:
..//API/bpm/activityVariable/{{taskId}}/variable_name

Select the Datepicker and assign in the value field:
get_today.value

I hope I've helped

Greetings.

Comments

Submitted by geovanny.campoverde on Fri, 09/23/2016 - 00:10

Thanks a lot for your response.

I will try to do it now.

Regards

Notifications