Questions tagged [presaveaction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Problem with PreSaveItem

I have some code in my PreSaveItem event that checks to see if there is a conflict on the calendar with the item being created. The code itself executes just fine and properly checks the calendar for ...
0
votes
1answer
60 views

Stay on NewForm after submitting the form

I have a requirement where Users need to stay on list's NewForm.aspx after submitting the item details. They should be able to create as many items until they click on Cancel without redirecting to ...
0
votes
1answer
22 views

Edit the saved item as soon as it is saved and navigate to the edit form with a new ID

we have the below requirement to be fullfilled we have custom button which will save the form and redirects to allitems.aspx, but we need to save the item and navigate to the edit form with the newly ...
0
votes
0answers
16 views

Populate Fields when Clicking “Save” on Custom List

I have a SP 2013 Custom List with 2 automatically generated numbers. Currently, they are queried and populated upon selection of input values for the first 2 fields. The form works great for a single ...
1
vote
0answers
38 views

SharePoint show hide after presave [closed]

I have a requirement to show three text boxes and make them mandatory on check of radio button else hide the text boxes. I am able to show hide in New and Edit form. But on Disp read form I am not ...
0
votes
2answers
85 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
16 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
25 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 ...
4
votes
2answers
90 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
574 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
99 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
844 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
31 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
330 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
235 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 "...