Page 1 of 1

re-direct after deleteing

Posted: 30 Jan 2017
by jpwallace
I have Show Toolbar selected from General Settings, thus showing Attachements and delete at the top of my form. On deleteing an item it it auto re-directs me to the main list, not the custom view i put on, is there a way to re-direct to any URL after deleteing an item?

Re: re-direct after deleteing

Posted: 31 Jan 2017
by Dmitry Kozlov
I have tested the case and it works as you described: after deleting an items, a user is redirected to the previous page (if the form is opened in the main window). You can check the Source query-parameter, it contains URL where a user is redirected after submission, closing, or deleting a form.

Re: re-direct after deleteing

Posted: 31 Jan 2017
by jpwallace
Thanks for you reply Dmitry, could you point me in the right direction on where to find and amend the source query-parameter in order to navigate to another page upon delteing an item.

Re: re-direct after deleteing

Posted: 31 Jan 2017
by Dmitry Kozlov
Hi,

You can change this parameter via JavaScript:

Code: Select all

fd.sourceFormParam('/page.aspx');

Re: re-direct after deleteing

Posted: 01 Feb 2017
by jpwallace
do i just need to put fd.sourceFormParam('/page.aspx'); and repalce ('/page.aspx') with my full URL?

Re: re-direct after deleteing

Posted: 02 Feb 2017
by Dmitry Kozlov
Yes, but the URL must be server-relative (starts with '/').