# submit button and access to the next form

**URL:** <https://community.ofelia.com/t/submit-button-and-access-to-the-next-form/6519>\
**Category:** Q&A\
**Created:** [30 September 2015 16:32 UTC](https://community.ofelia.com/t/submit-button-and-access-to-the-next-form/6519 "2015-09-30T16:32:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![etchegaray](https://avatars.discourse-cdn.com/v4/letter/e/8baadc/32.png) [@etchegaray](https://community.ofelia.com/u/etchegaray)\
**Post date:** [30 September 2015 16:32 UTC](https://community.ofelia.com/t/submit-button-and-access-to-the-next-form/6519/1 "2015-09-30T16:32:34Z")

</div>

I have two human tasks: Step1 and Step2. I want that when I finished the first redirected to the form of the second. In the form of the first task I have defined the following variables:

myTask (externalAPI): …/API/bpm/task/{{taskId}}  
myCase (javaScript): return $data.myTask.caseId  
urlNextTask (javaScript): return ‘/form/processInstance/’ + $data.myCase +‘/task/Step2’

In the “Target URL on success” of de button submit write: /bonita/portal/{{urlNextTask}}

On click, the url to send is literally **/bonita/portal/{{urlNextTask}}** instead of /bonita/portal/form/processInstance/123/task/Step2 (where 123 is the number of Case)

What am I doing wrong? What I want is to go from one form to the next without going through the portal.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [18 November 2015 16:16 UTC](https://community.ofelia.com/t/submit-button-and-access-to-the-next-form/6519/2 "2015-11-18T16:16:57Z")

</div>

Hi,

I don’t know exactly why the interpolation of urlNextTask does not work. I would suggest to open a ticket on the community tracker.

In the meantime I can suggest to use a custom widget that take care of the redirection. One is [available as a community projects](http://community.ofelia.com/project/redirect-next-task-widget).

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [19 November 2015 10:07 UTC](https://community.ofelia.com/t/submit-button-and-access-to-the-next-form/6519/3 "2015-11-19T10:07:59Z")

</div>

Issue about interpolation in redirect URL is a [known bug](https://bonita.atlassian.net/browse/BBPMC-319) and it should be fixed in an upcoming maintenance release.
