Redirect after completing the task

Danuta Welz asked on April 4, 2016 15:19

I would like to redirect page after completing the task. For example I am adding a new question for my Questions & Answers page and would like to redirect page to another page with list of questions. I use Custom tables and web part "Custom Table Form" for new question. Could you help me? Regards

Recent Answers


Brenden Kehren answered on April 4, 2016 15:42

You have a few options:

  • JavaScript to perform some checking and redirecting
  • Clone and modify the webpart you're currently using
  • Create a global event handler
1 votesVote for this answer Mark as a Correct answer

David te Kloese answered on April 4, 2016 15:46

Hi,

I'm not aware of this working without any customizations.

Next to Brenden's suggestions you could try using Bizz Forms, they have a setting that will let you redirect after a successfully submitting. There is however no dedicated webpart to display Forms data directly on the website.

David

0 votesVote for this answer Mark as a Correct answer

Felix Planjer answered on April 4, 2016 15:50

After saving a new record with the Custom Table Form web part, the Id of the newly created record is added to to the querystring of the page.

You could use this querystring paramter to redirect to another page: create a javascript webpart with redirect code in it and use a macro in the visibility property of that web part to be only visible when the querystring param is prerent.

Another way is to extend the Custom Table Form web part to do the redirect from code. See CMSModules\CustomTables\Controls\CustomTableForm.ascx.cs

Regards, Felix

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.