re-direct after deleteing

rss

Posted by jpwallace - Jan 30 ’17 at 09:22

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?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 days
    #1 by Dmitry Kozlov Jan 31 ’17 at 02:57

    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.

  • jpwallace
    Member
    Member for: 2 years 11 months 1 day
    #2 by jpwallace Jan 31 ’17 at 03:42

    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.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 days
    #3 by Dmitry Kozlov Jan 31 ’17 at 04:02

    [#2]: Hi,

    You can change this parameter via JavaScript:

    fd.sourceFormParam('/page.aspx');
  • jpwallace
    Member
    Member for: 2 years 11 months 1 day
    #4 by jpwallace Feb 1 ’17 at 05:15

    [#3]: do i just need to put fd.sourceFormParam('/page.aspx'); and repalce ('/page.aspx') with my full URL?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 days
    #5 by Dmitry Kozlov Feb 2 ’17 at 05:11

    [#4]: Yes, but the URL must be server-relative (starts with '/').

Displaying 1 to 5 of 5 messages