Questions tagged [presaveaction]
The presaveaction tag has no usage guidance.
15 questions
0
votes
1
answer
927
views
Checking if a list item combination already exists, and returning an alert using PreSaveAction function
I'm creating a script that will override submit form functionality when the save button is clicked. The goal is to validate user input by checking if a combination of columns already exists within a ...
0
votes
0
answers
69
views
Getting NULL from input field query when trying to validate it using Presaveaction after adding SharePoint Link to Multiple lines of text field
I am trying to validate the Input and some other fields using Presaveaction function.
function presaveaction(){
if($('input[title*="FieldName"]').val().trim()){
alert('FieldName should not ...
0
votes
1
answer
170
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
2
answers
740
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
1
answer
24
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 ...
1
vote
0
answers
40
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
2
answers
2k
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
1
answer
20
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?
4
votes
2
answers
310
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
1
answer
1k
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
1
answer
422
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
2
answers
1k
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
1
answer
189
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
3
answers
612
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
2
answers
394
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 "...