Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

Setting input value in modern experience with javascript

I'm trying to automate the adding of a list entry in sharepoint online lists with modern UI and plain JS. Setting the value works fine using: // Stolen from StackOverflow ;) const inputTypes = [ ...
MsListsAutomator's user avatar
0 votes
1 answer
35 views

Add code based validation to InfoPath forms for Sharepoint

I have a list where I use Infopath Forms. Users use these forms to enter data. They should also attach something in the form, but if they don't attach anything and click save, I want that the item is ...
Code Pope's user avatar
  • 101
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 ...
Scott Davis's user avatar
0 votes
2 answers
528 views

How to make PeoplePicker a required field?

I have a form with a couple PeoplePickers and I'd like to require the user to make a selection for the people picker, but unlike a text box field, I can't figure out how to require a peoplepicker. ...
Susan T.'s user avatar
  • 141
0 votes
2 answers
1k views

Javascript to retrieve and validate file attachments in new item form

I have a requirement to inject javascript via a script editor web part into a form and validate that it's not a macro enabled Excel file (xltm or xlsm), and throw a validation error if it is and not ...
Nate's user avatar
  • 744
0 votes
1 answer
359 views

Validation of lookup fields

I am using the following Javascript code using Script Editor on NewForm.aspx. It supposed to be working but by debugging I can see that the value returned from the dropdown select is empty. I looks to ...
Kirill's user avatar
  • 1
2 votes
1 answer
5k views

People Picker Validation

I want to perform client side validation on people picker where in if the people picker is empty just to show an alert saying it is required. I am aware of java script and j query so if you guys can ...
jayant khushalani's user avatar
3 votes
1 answer
638 views

How to customise date picker validation in sharepoint

In sharepoint, the date picker function has a limit such that if you pick a date beyond what the system gives, it produces the following error: "You must specify a valid date within the range of 01....
sarahtankr's user avatar
0 votes
1 answer
396 views

How to validate browser based InfoPath form using JavaScript?

I am working with SP2013 with InfoPath Designer 2013. I have created a browser based InfoPath form with certain field. I have kept this form on Page using InfoPath Form WebPart. Now I want to ...
Trimantra Software Solution's user avatar
1 vote
1 answer
363 views

SharePoint Online Unable To Modify Default New Form

I have created a custom list in SharePoint Online and would like to modify the new form by including some javascript for conditional validation via JSLink. When I go to List > Form Web Parts > ...
mhep's user avatar
  • 404
0 votes
2 answers
829 views

Jquery conditional dropdown validation question

I have multiple Sharepoint dropdowns validation but I will show only two on my code. I can't seem to find where the problem is. The logic is if the user choose from any dropdown values <> "yes" ...
normsp's user avatar
  • 97
3 votes
5 answers
11k views

Getting Value of Radio Button on SharePoint 2013 Edit Form using jQuery

EDIT: updated verbiage to reflect this is specifically a Radio Button choice field. The below script works when the choice is set to display in a drop down. I'd like to be able to do the equivalent ...
Nate's user avatar
  • 744
0 votes
4 answers
3k views

number field to limited digits without comma in sharepoint list

On my SharePoint online site I have a custom list with a Number field.I want to apply validation on this field so that the Number should not be less than or greater than 5 digits and it should be ...
Jenny's user avatar
  • 109
1 vote
0 answers
202 views

Sharepoint List Form Javascript get validation results

Is it possible to find out using javascript/jquery if a SharePoint 2013 new/edit list form throws validation errors? Something like: if(page.ValidationFailed) //do something I do not won't to write ...
MrImperial's user avatar
2 votes
3 answers
29k views

How to get Relative Url using Jquery in Sharepoint Site

In my SharePoint site first I want to get Host URL(/Site URL ),and user would enter Relative URL in TextBox. Then I want to append that relative URL with Host URL Using jquery and need to check that ...
Akshay Dattatray Nangare's user avatar
1 vote
2 answers
6k views

Insert a list item using REST form webpart: 403 error even when X-RequestDigest is present

I intend to insert a list item from the main page in intranet to a list hosted on another site collection. I made this simple HTML & JS to get it done, but I always get the 403 / FORBIDDEN error: ...
Juan Ochando's user avatar
3 votes
1 answer
4k views

Conditionally hide/require form column based on radio buttons

I'm sure it's been asked a million times, but after hours of searching and messing around I have been unable to find a solution...Hopefully someone here can help me? I have a SharePoint list that has ...
Matt's user avatar
  • 33
1 vote
1 answer
451 views

Recalculate Calculated Columns with Javascript

Has anyone some sample javascript code to recalculate a calculated column in SharePoint 2013 tasks? This should work on new and edit form and also with the AllItems view. Many thanks.
Michael Mayr's user avatar
20 votes
6 answers
26k views

How do I trigger the default form validation without submitting the form

I'm customizing the NewForm of a list item and need to trigger the default form validation from my JavaScript, but I don't want the form to be submitted, since I'm doing that in a callback later on. ...
stinaq's user avatar
  • 1,080
2 votes
1 answer
3k views

Making Presaveaction() wait for SP.UI.ModalDialog response

I am using the Presaveaction() to perform pre-new/edit form validation. Once all fields have been validated successfully I would like to offer my users the ability to 'Save and Exit' or 'Save and ...
Fairfield's user avatar
  • 612
1 vote
4 answers
3k views

How to perform date validation in publishing page layout?

I have the following 2 datetime fields which are used in my custom page layout on my publishing site. Basically, when a user is editing the page I want to validate that the 'NewsLiveDate' < '...
Ralph W's user avatar
  • 988
1 vote
1 answer
551 views

Server side validation if Javascript disabled on user's browser

I have developed a small form with 3 input type = text and one input type = submit button. The end user fills the form and submit it, but no data inserted into backend List. (probably empty form is ...
SPBeginer's user avatar
  • 2,559
1 vote
0 answers
342 views

Updating a value of any item in a list based on a selection of bool for one item - jQuery

So I hope this makes sense. I have a column within a list that I want to use as an active flag. There are 5 possible categories and for each category, there can only be one active value. So I need ...
Justin's user avatar
  • 1,361
4 votes
2 answers
4k views

form validation

I am new in javascript. I want to validating a form with five columns. FormDescription My Form Contain 5 input fields and one submit buttom I want following output 1.Initially submit button ...
Kader-timon's user avatar
2 votes
0 answers
397 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
bobosh's user avatar
  • 143
2 votes
1 answer
1k views

Custom form validation

I am new to Infopath and Sharepoint, and have been reading everything I could find online about this, but nothing to solve my problem. We need a form with custom validation (logic in javascript) to ...
Batman's user avatar
  • 33