Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
2answers
36 views

how to set the minimum length of a single line text in sharepoint online?

I have already set the maximum length, but now I need the user to enter not less than a certain amount This is the script I'm using : function PreSaveAction() { var control = getElementByID("IBAN(24 ...
0
votes
1answer
14 views

SaveFailAction instead of PreSaveAction? Does it exist?

I would like to run some javascript if an item fails to save from NewForm or EditForm. Does such a thing exist?
0
votes
0answers
20 views

Unable to get the focus of text box in a Accordion in SP Online List newfor.aspx PresaveAction

Am unable to get the focus of TextBox in a HillyBill templated accordion in my SP online list newform.aspx. i ahve written the code using .focus() of jQuery, but it didnt work! function ...
5
votes
2answers
54 views

CSRListForm and PreSaveAction or PreSaveItem

I've used PreSaveAction successfully in the past, but now I'm working with a CSRListForm and neither one of these will fire off. Even if I use just a simple alert message. I know the CSRListForm ...
1
vote
1answer
192 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
47 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
344 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
27 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 ...
1
vote
3answers
177 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
81 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 "...