Skip to main content

How to write the custom validation using jQuery in custom HTML form. I?

I have created acustoma custom html form which has fields dropdown, single line of textstext, people picker values,date fields, etc. and custom submit button.

 

 

But, I am stuck at. how to perform custom validation using jsom/ jquery etc.?

  
  1. canCan i use spservices inside jsom ?
  2. canCan i use presaveaction on click of the custom submit button?
  3. alsoAlso,i wannawant to redirect the browser to a editformeditForm.aspx page and need to populate with the newlycreatedIDnewly created ID as a query string
  4.  
  5. .
am just started learning jsom coding in SPO(basically i am a SSOM guy !!), so help is appreciated for guiding me.

I have just started learning jsom coding in SPO(basically i am a SSOM guy !!), so any help is appreciated for guiding me.

           function bindButtonClick() {
        $("#btnSubmit").on("click", function () {
            addListItem();
            });
   }

though iThough I have written the above code , I am not able to get, where to write custom validation, and if its success, how to redirect and fetch the last generatedID etc.

How to write the custom validation using jQuery in custom HTML form. I have created acustom html form which has dropdown, single line of texts, people picker values,date fields etc and custom submit button.

 

am stuck at. how to perform custom validation using jsom/ jquery etc.

 
  1. can i use spservices inside jsom ?
  2. can i use presaveaction on click of the custom submit button
  3. also,i wanna redirect to a editform.aspx page and need to populate with the newlycreatedID as a query string
  4.  
am just started learning jsom coding in SPO(basically i am a SSOM guy !!), so help is appreciated for guiding me.
           function bindButtonClick() {
        $("#btnSubmit").on("click", function () {
        addListItem();
            });}

though i have written the above code , am not able to get, where to write custom validation, and if its success, how to redirect and fetch the last generatedID etc

How to write the custom validation using jQuery in custom HTML form?

I have created a custom html form which has fields dropdown, single line of text, people picker,date, etc. and custom submit button. 

But, I am stuck at how to perform custom validation using jsom/ jquery etc.?

 

  1. Can i use spservices inside jsom ?
  2. Can i use presaveaction on click of the custom submit button?
  3. Also,i want to redirect the browser to a editForm.aspx page and need to populate with the newly created ID as a query string.

I have just started learning jsom coding in SPO(basically i am a SSOM guy !!), so any help is appreciated for guiding me.

   function bindButtonClick() {
        $("#btnSubmit").on("click", function () {
            addListItem();
        });
   }

Though I have written the above code , I am not able to get where to write custom validation, and if its success, how to redirect and fetch the last generatedID.

Source Link
samolpp2
  • 3.5k
  • 5
  • 56
  • 101

perform custom validation on custom html form against sharepoint list

How to write the custom validation using jQuery in custom HTML form. I have created acustom html form which has dropdown, single line of texts, people picker values,date fields etc and custom submit button.

am stuck at. how to perform custom validation using jsom/ jquery etc.

  1. can i use spservices inside jsom ?
  2. can i use presaveaction on click of the custom submit button
  3. also,i wanna redirect to a editform.aspx page and need to populate with the newlycreatedID as a query string
am just started learning jsom coding in SPO(basically i am a SSOM guy !!), so help is appreciated for guiding me.
           function bindButtonClick() {
        $("#btnSubmit").on("click", function () {
        addListItem();
            });}

though i have written the above code , am not able to get, where to write custom validation, and if its success, how to redirect and fetch the last generatedID etc