Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,539
Community Members
 
Community Events
168
Community Groups

Is there a way to prevent Confiforms from navigating to the page that has the form once submitted?

Hello!

I have a Confiforms form which i have added to many pages using the Include Page macro. This allows me to make changes to the form in one place, and have all of the forms be updated dynamically. My problem is that when a user is on the space and they use the form (which is included from another page) and they submit it, confluence redirects them to the original form page. Is there any way to prevent this from happening?

Any help is helpful ;)

-Curtis

2 answers

1 accepted

1 vote
Answer accepted

I am still looking for a way to redirect the user back to the page which has the Include Page macro rather than having to navigate to a set URL. In other words I want the user to be able to go back to the page they accessed the form from (no matter which page that may be) and not to a hard coded URL.

Any help is greatly appreciated. Thanks!

-Curtis

This is now possible with @self notation in Valid Redirect URL parameter (supported in IFTTTs, in FormView, in Edit Controls)

I will give this a try. Thanks for the information!

Update: I realized that creating another IFTTT control in the form allows me to redirect to a new URL. I made the form redirect to my home page for the space, but is there a way to have it navigate back to the page that the form was accessed from. I know how to do this kind of thing with php but am unsure how Confluence would handle such a task.

Thanks again for any help

-Curtis

Just in case you are still struggling with this as I came across this thread while seeking a solution to something else. In the valid redirect URL field in the macro, simply put "@self" and that will keep you on the same page that you accessed the form from

Like # people like this

can you please specify where to put "@self?" I have a similar problem but I'm not using a macro, just multiple form fields within three tabs containers. When a user submits a request through the form, the page refreshes and they are taken to the first tab instead of the one where they created their request.

I would greatly appreciate your help!

small update: I found the field you were talking about (IFTTTs, in FormView, in Edit Controls - valid redirect URL) however "@self" did not work for me, what worked was inputting the actual url along with the tab name. So url+"#TabName"

thanks!

If you have your form inside the tabs then surely you need to tell it to switch to active tab via #tabName... Using @self will just redirect to default page state (not selecting specific tab)

Like Alex Cent likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events