Skip to main content
added 794 characters in body
Source Link

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I've discovered that I can edit the web part for adding items to a specific list by navigating to:

http://mysite/myListName/newForm.aspx?toolpaneview=2

I've inserted a content editor web part and linked it to the following javascript file:

<script src="jquery.min.js"></script>
<script src="jquery.SPServices.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "Markets",
    relationshipListParentColumn: "Region",
    relationshipListChildColumn: "Market",
    CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
    parentColumn: "Region",
    childColumn: "Market",
    debug: true
  });
 
   alert('hi');
});
</script>

The end goal is to create cascading drop downs, but for now, I'd like just to alert "Hello World" and ensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

EDIT: Looks like the way I'm coding the path for these scripts is different for a standard web part: enter image description here

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I've discovered that I can edit the web part for adding items to a specific list by navigating to:

http://mysite/myListName/newForm.aspx?toolpaneview=2

I've inserted a content editor web part and linked it to the following javascript file:

<script src="jquery.min.js"></script>
<script src="jquery.SPServices.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "Markets",
    relationshipListParentColumn: "Region",
    relationshipListChildColumn: "Market",
    CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
    parentColumn: "Region",
    childColumn: "Market",
    debug: true
  });
 
   alert('hi');
});
</script>

The end goal is to create cascading drop downs, but for now, I'd like just to alert "Hello World" and ensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

EDIT: Looks like the way I'm coding the path for these scripts is different for a standard web part: enter image description here

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I've discovered that I can edit the web part for adding items to a specific list by navigating to:

http://mysite/myListName/newForm.aspx?toolpaneview=2

I've inserted a content editor web part and linked it to the following javascript file:

<script src="jquery.min.js"></script>
<script src="jquery.SPServices.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "Markets",
    relationshipListParentColumn: "Region",
    relationshipListChildColumn: "Market",
    CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
    parentColumn: "Region",
    childColumn: "Market",
    debug: true
  });
 
   alert('hi');
});
</script>

The end goal is to create cascading drop downs, but for now, I'd like just to alert "Hello World" and ensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

EDIT: Looks like the way I'm coding the path for these scripts is different for a standard web part: enter image description here

added 144 characters in body; edited title
Source Link

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I've discovered that I can edit the web part for adding items to a specific list by navigating to:

http://mysite/myListName/newForm.aspx?toolpaneview=2

I've inserted a content editor web part and linked it to the following javascript file:

<script src="jquery.min.js"></script>
<script src="jquery.SPServices.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "Markets",
    relationshipListParentColumn: "Region",
    relationshipListChildColumn: "Market",
    CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
    parentColumn: "Region",
    childColumn: "Market",
    debug: true
  });
 
   alert('hi');
});
</script>

The end goal is to create cascading drop downs, but for now, I'd like just to alert "Hello World" and ensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

EDIT: Looks like the way I'm coding the path for these scripts is different for a standard web part: enter image description here

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I've discovered that I can edit the web part for adding items to a specific list by navigating to:

http://mysite/myListName/newForm.aspx?toolpaneview=2

I've inserted a content editor web part and linked it to the following javascript file:

<script src="jquery.min.js"></script>
<script src="jquery.SPServices.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "Markets",
    relationshipListParentColumn: "Region",
    relationshipListChildColumn: "Market",
    CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
    parentColumn: "Region",
    childColumn: "Market",
    debug: true
  });
 
   alert('hi');
});
</script>

The end goal is to create cascading drop downs, but for now, I'd like just to alert "Hello World" and ensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I've discovered that I can edit the web part for adding items to a specific list by navigating to:

http://mysite/myListName/newForm.aspx?toolpaneview=2

I've inserted a content editor web part and linked it to the following javascript file:

<script src="jquery.min.js"></script>
<script src="jquery.SPServices.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "Markets",
    relationshipListParentColumn: "Region",
    relationshipListChildColumn: "Market",
    CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
    parentColumn: "Region",
    childColumn: "Market",
    debug: true
  });
 
   alert('hi');
});
</script>

The end goal is to create cascading drop downs, but for now, I'd like just to alert "Hello World" and ensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

EDIT: Looks like the way I'm coding the path for these scripts is different for a standard web part: enter image description here

added 144 characters in body; edited title
Source Link

Create list form without List Form Web Part jQuery Hello World on NewForm.aspx Without SharePoint Designer?

I am unableI'd like to open my SharePoint sitemodify the Add to list functionality found in SharePoint Designer. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I'd like to create a form which allows me to add rowsI've discovered that I can edit the web part for adding items to a specific list, like so by navigating to: http://www.sympraxisconsulting.com/Demos/Demo%20Pages/CascadingDropdowns.aspx

Is it possible to do this without SharePoint Designer?http://mysite/myListName/newForm.aspx?toolpaneview=2

EDIT: I've found this SPService's example of updating listsI've inserted a content editor web part and linked it to the following javascript file:

// Update default values of the metadata fields
var fieldsToUpdate = '<Fields>';
fieldsToUpdate += '<Method ID="1"><Field Type="Text" Name="ProjectName" DisplayName="Project name"><Default>' + projectName +<script '</Default></Field><src="jquery.min.js"></Method>';script>
fieldsToUpdate += '<Method ID="2"><Field Type="Text" Name="MarinProjectNumber" DisplayName="Project number"><Default>' + projectNumber +<script '</Default></Field><src="jquery.SPServices.min.js"></Method>';script>
fieldsToUpdate += '<Method ID="3"><Field Type="Text" Name="CustomerNumber" DisplayName="Customer number"><Default>' + customerNumber +
<script '</Default></Field><type="text/Method>';javascript">
fieldsToUpdate += '<Method ID="4"><Field Type="Text" Name="CustomerName" DisplayName="Customer name"><Default>' + customerName +$(document).ready(function() '</Default></Field></Method>';{
fieldsToUpdate += '</Fields>';


$().SPServices.SPCascadeDropdowns({
  operation  relationshipList: "UpdateList""Markets",
  listName  relationshipListParentColumn: "Documents""Region",
  listProperties:"",
  updateFieldsrelationshipListChildColumn: fieldsToUpdate"Market",
  newFields  CAMLQuery: """<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
  deleteFields  parentColumn: """Region",
  listVersion  childColumn: """Market",
  async  debug: false,true
  completefunc:});
 function 
 (xData, Status alert('hi'){};
});
</script>

But do I justThe end goal is to create a Content Editor Web Partcascading drop downs, but for now, I'd like just to alert "Hello World" and create a simple HTMLensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

Create list form without List Form Web Part?

I am unable to open my SharePoint site in SharePoint Designer.

I'd like to create a form which allows me to add rows to a list, like so: http://www.sympraxisconsulting.com/Demos/Demo%20Pages/CascadingDropdowns.aspx

Is it possible to do this without SharePoint Designer?

EDIT: I've found this SPService's example of updating lists:

// Update default values of the metadata fields
var fieldsToUpdate = '<Fields>';
fieldsToUpdate += '<Method ID="1"><Field Type="Text" Name="ProjectName" DisplayName="Project name"><Default>' + projectName + '</Default></Field></Method>';
fieldsToUpdate += '<Method ID="2"><Field Type="Text" Name="MarinProjectNumber" DisplayName="Project number"><Default>' + projectNumber + '</Default></Field></Method>';
fieldsToUpdate += '<Method ID="3"><Field Type="Text" Name="CustomerNumber" DisplayName="Customer number"><Default>' + customerNumber + '</Default></Field></Method>';
fieldsToUpdate += '<Method ID="4"><Field Type="Text" Name="CustomerName" DisplayName="Customer name"><Default>' + customerName + '</Default></Field></Method>';
fieldsToUpdate += '</Fields>';


$().SPServices({
  operation: "UpdateList",
  listName: "Documents",
  listProperties:"",
  updateFields: fieldsToUpdate,
  newFields: "",
  deleteFields: "",
  listVersion: "",
  async: false,
  completefunc: function (xData, Status){}
});

But do I just create a Content Editor Web Part and create a simple HTML form?

jQuery Hello World on NewForm.aspx Without SharePoint Designer?

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that functionality.

I've discovered that I can edit the web part for adding items to a specific list by navigating to:

http://mysite/myListName/newForm.aspx?toolpaneview=2

I've inserted a content editor web part and linked it to the following javascript file:

<script src="jquery.min.js"></script>
<script src="jquery.SPServices.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $().SPServices.SPCascadeDropdowns({
    relationshipList: "Markets",
    relationshipListParentColumn: "Region",
    relationshipListChildColumn: "Market",
    CAMLQuery: "<Eq><FieldRef Name='Status'/><Value Type='Text'>Active</Value></Eq>",
    parentColumn: "Region",
    childColumn: "Market",
    debug: true
  });
  
   alert('hi');
});
</script>

The end goal is to create cascading drop downs, but for now, I'd like just to alert "Hello World" and ensure that jQuery can actually be called from this form? Is it possible? Right now, nothing is happening when I load that page.

I've double checked my script locations, and everything looks good.

Here is what it looks like when I navigate to the above URL:

enter image description here

I would assume that the page would load the Content Editor Web Part just like any other web part. So I am surprised that this is not working. Any advice?

Source Link
Loading