Plumsail forms redirect on close
- dominique.beaudin
- Posts: 49
- Joined: Tue Mar 06, 2018
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?
- dominique.beaudin
- Posts: 49
- Joined: Tue Mar 06, 2018
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
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
Hello Dominique,
You can hide all close buttons on the form with this code:
And to hide the cancel button on the ribbon, please use the following code:
You can hide all close buttons on the form with this code:
Code: Select all
fd.cancel().hide(true);
Code: Select all
$(document).ready(function(){
document.getElementById("Ribbon.ListForm.Edit.Commit.Cancel-Large").style.display="none";
});
- dominique.beaudin
- Posts: 49
- Joined: Tue Mar 06, 2018
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.
Hello Dominique,
If you want to hide Cancel and Save buttons in the ribbon, you can hide the whole Commit section. Please see the code below.
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
If you want to hide Cancel and Save buttons in the ribbon, you can hide the whole Commit section. 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);
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 12 guests