We are currently using the redirect on submission option for some of our webforms to direct users to specific pages related to the webform. However, we are now experiencing difficulties when users come back to the webform after it is closed or become unavailable because they already filled it out.

We are looking for any advice or pointers on what we might use to redirect users to a custom URL from a webform after it has closed OR if the user has reached the maximum submissions?

Any suggestions would be greatly appreciated.

Comments

danchadwick’s picture

I am not sure of the exact situation that you are having difficulty with, but I have noticed that when you edit an already-submitted form, you are not redirected. Is this related to your situation?

stpaultim’s picture

I could have done a better job of explaining the situation.

We currently require that users complete a webform as a condition before claiming credit for an activity. To manage this, we simply point them to the webform and then redirect them upon completion of the webform to the page where they can "claim credit" for the activity. Under normal conditions this works fine for us.

However, we limit them to filling out the webform only once - and occasionally a user completes the webform but is interrupted before claiming credit. In this case, the come back to the webform at a later date hoping to claim credit for their activity - but the webform does not redirect them to the page for claiming credit.

In some cases, we close a webform before all users have claimed credit for the activity. If the users uses the link to the webform that has already closed they are never redirected to the page where they can claim credit.

In these situations, we'd like to redirect them to the page where they can claim credit. However, currently we cannot see anyway to redirect a user from webform that they have already completed or that we have closed.

Does this help?

danchadwick’s picture

Status: Active » Closed (works as designed)

I think you need to write a little custom code that gives a landing page for the link you send out which either sends the to the webform to submit a webform, sends the to the webform to complete a draft (if you are using drafts), or sends them to the claim page if they already have a completed webform or the webform is closed. This page would simply be redirects using drupal_goto().

It is possible that this could be accomplished with rules -- not sure. I don't see how webform itself could / should have this functionality. I'm making this as closed, but feel free to post more if I can help further or you think it shouldn't be closed.