# Date selected on form, assign task to user when date is reached.

**URL:** <https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505>\
**Category:** Q&A\
**Created:** [9 May 2014 12:55 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505 "2014-05-09T12:55:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [9 May 2014 12:55 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/1 "2014-05-09T12:55:54Z")

</div>

Dear Sir/Mdm,

I have a form with date widget. I want to know when the user set a date in the widget, he/she can trigger the next task to user on the date he/she select? Can it be done?

Terry

---

<div class="post-metadata">

**Author:** ![haris.subasic](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@haris.subasic](https://community.ofelia.com/u/haris.subasic)\
**Post date:** [9 May 2014 13:15 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/2 "2014-05-09T13:15:22Z")

</div>

Hello Terry,  
You can save this date in a variable and put an intermediate timer event that will use it as a value for “Fixed date”. That will the time will go off on the given date and allow to move on to the next task.  
Does that help?  
Cheers,  
Haris

---

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [9 May 2014 13:32 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/3 "2014-05-09T13:32:33Z")

</div>

Hi Haris.subasic,

Ok i have set the date to variable as “date\_of\_events”. I have also placed an intermediate timer. i set the variable “date\_of\_events” . Tried but not work. Any advise?

Terry

---

<div class="post-metadata">

**Author:** ![haris.subasic](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@haris.subasic](https://community.ofelia.com/u/haris.subasic)\
**Post date:** [9 May 2014 13:38 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/4 "2014-05-09T13:38:46Z")

</div>

Could you explain what happened (what did “not work”), please? I tried it and it works fine. Please, make sure to use date and time in your date widget, so that you can also precise time when testing (by default it will be 00:00, if not).

---

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [9 May 2014 14:03 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/5 "2014-05-09T14:03:55Z")

</div>

Sorry, it works now. Can i also ask if i can set in the following way:

User select a date in the date widget for eg “25/09/2014”, can i set in the intermediate timer in such a way that it will move onto the next task 14 days from the selected date of 25/09/2014?

Terry

---

<div class="post-metadata">

**Author:** ![haris.subasic](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@haris.subasic](https://community.ofelia.com/u/haris.subasic)\
**Post date:** [9 May 2014 14:06 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/6 "2014-05-09T14:06:01Z")

</div>

Ok, great to hear that it works.  
In that case, you can use a script and put something like date\_of\_events+14

---

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [9 May 2014 14:07 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/7 "2014-05-09T14:07:22Z")

</div>

Hi Haris,subasic,

Tks so much for your help. It works.

Terry

---

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [9 May 2014 14:12 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/8 "2014-05-09T14:12:24Z")

</div>

Hi haris,subasic,

How do i change the ‘due date’ in Bonitasoft portal? Its always say due date: 18 mins whenever i assign a new task to user.

Terry

---

<div class="post-metadata">

**Author:** ![haris.subasic](https://avatars.discourse-cdn.com/v4/letter/h/5daacb/32.png) [@haris.subasic](https://community.ofelia.com/u/haris.subasic)\
**Post date:** [9 May 2014 14:14 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/9 "2014-05-09T14:14:26Z")

</div>

It is not related to your original question, but - Due date in the Portal is related to the task’s Estimated duration that is configured on the Portal tab of the selected task in the Studio.

---

<div class="post-metadata">

**Author:** ![terrytan1979](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@terrytan1979](https://community.ofelia.com/u/terrytan1979)\
**Post date:** [9 May 2014 14:15 UTC](https://community.ofelia.com/t/date-selected-on-form-assign-task-to-user-when-date-is-reached/4505/10 "2014-05-09T14:15:18Z")

</div>

Tks haris.
