Plumsail forms redirect on close

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
dominique.beaudin
Posts: 49
Joined: Tue Mar 06, 2018

18 Dec 2019

I apologize if this has been answered elsewhere, but while I can successfully redirect the form to a specific page upon submission, I can't seem to do the some when "close" is pressed. Is this possible?

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

20 Dec 2019

Hello Dominique,

You can add this code in the button OnClick event handler:

window.location = 'your URL';

User avatar
dominique.beaudin
Posts: 49
Joined: Tue Mar 06, 2018

23 Dec 2019

Hello,

That works well on a button I create, but how can I attach it to the Sharepoint Close button? Or otherwise can I hide the Sharepoint close?

Thanks again

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

24 Dec 2019

Hello Dominique,

You can hide all close buttons on the form with this code:

Code: Select all

fd.cancel().hide(true);
And to hide the cancel button on the ribbon, please use the following code:

Code: Select all

$(document).ready(function(){

document.getElementById("Ribbon.ListForm.Edit.Commit.Cancel-Large").style.display="none";

});

User avatar
dominique.beaudin
Posts: 49
Joined: Tue Mar 06, 2018

17 Feb 2020

Thank you. For some reason I can't seem to get the save/close hidden with the code. Should this hide the default Save/Close/PDF ribbon on top. Also, can I modify a form in both products as long as I don't save the Plumsail version? My forms are complex and creating a new Sharepoint site would be a huge amount of work. I'm trying to get a version created and then spend my after hours time tweaking instead of trying to do the creation and testing after hours. thanks again.

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

19 Feb 2020

Hello Dominique,

If you want to hide Cancel and Save buttons in the ribbon, you can hide the whole Commit section.
Commit.PNG
Commit.PNG (2.59 KiB) Viewed 3505 times
Please see the code below.

Code: Select all

//hide Commit section in the ribbon
document.getElementById("Ribbon.ListForm.Edit.Commit").style.display="none";

//hide Export to PDF button in the ribbon
document.getElementById("Plumsail.Section.PDF").style.display="none";

//hide defult save buttons in the form
fd.save().hide(true);

//hide defult cancel buttons in the form
fd.cancel().hide(true);
We do not recommend using both products on the same list, as this can cause conflicts.

You can create a new site from the template for development needs and then move forms to the production site. You can find more information about how to provision forms in the article here:
https://plumsail.com/docs/forms-sp/desi ... ision.html

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests