Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [presaveaction]

The tag has no usage guidance.

1
vote
1answer
59 views

PreSaveAction for Quick Edit Mode

I have build some scripts running in the PreSaveAction function for example to validate some data or conditionaly send an email via ajax call. Now I need this functionality when the user creates a new ...
1
vote
1answer
34 views

Auto refresh the page in Editform.aspx with ID query string param with updated list item value in Presaveitem()

am having an editform.aspx page in my SPO site. am using presaveitem() in my content editor web part to perform validation and etc after completion of calling of presaveitem(), i ant to stay on the ...
0
votes
2answers
90 views

Custom save button on newform.aspx is not visible, enabled. how to trigger event

I am trying to add one new custom button near the save button on a newform.aspx of my list in a SharePoint Online site. Here is the current content editor web part (CEWP) code in the newform.aspx, ...
0
votes
1answer
23 views

Automatically set value for certain fields in the new form before check in activity for the document library new form

we have a requirement to automatically fill certain fields, before the check in activity for the new form of the document library, how can this be achieved? it seems like the new form of the ...
0
votes
0answers
36 views

PreSaveItem function is not stopping the SAVE event in SharePoint 2016

Below is the code I am using, on click of save button it shows the alert I am using in it. but after the alert, it redirects to the next page instead of canceling the save event. function PreSaveItem(...
0
votes
0answers
20 views

Calling SP.SOD.executeFunc in PreSaveAction - Return Value coming as null

I have a Sharepoint form and am iterating through values in a sharepoint list to compare with the input entered on the current form. Everything is working except that executeFunc returns before the ...
0
votes
0answers
41 views

PreSaveAction conditional statement return false but give users option to override

I have a conditional statement on PreSaveAction. So when the conditions are met I have a modal that warns the user with a go back button and a continue button: onclick="javascript: if( PreSaveAction()...
1
vote
3answers
120 views

JavaScript: Combine two IF-ELSE statements in “PreSaveAction” Function

sharepeoint list Newform.aspx needs to check before saving the item, for that i wrote a PreSaveAction funtion using javascript. right now i'm checking the expiration date with current date before ...
1
vote
2answers
53 views

Using PreSaveAction() on Edit page clears dropdown

I'm using a simple PreSaveAction() on my custom Edit Form. This is SharePoint 2013 on-premise. The goal is to validate a drop down menu against a text field. ie. If the Status drop down is set to "...