Install / Use problems

Nov 2, 2009 at 3:41 PM

I am having issues with this,  have downloaded the file and aded that to my sharepint site, but how and where do I add the function?

I understand that I have to add it to te newform.aspx for instance but where in that file? what is the code I should use?

Nov 5, 2009 at 10:15 AM

As I have been struggling to get this working for the last few days and I am sure other people may be struggling with this as well I thought I would do a brief explanation of how I got this to work:

 

  1. Create a new document library on your SharePoint site called javascript
  2. Download the spff.js file and save it to the document library
  3. Download the latest jquery file from this link - http://docs.jquery.com
  4. Rename the file in point 3 above to jquery.js and save to the same document library
  5. Navigate to the form you would like to edit
  6. Add the following “?PageView=Shared&ToolPaneView=2” text at the end of the .aspx section of the URL so the complete URL would look like this: http://<name-of-your-site>/Lists/temp%20list/NewForm.aspx?PageView=Shared&ToolPaneView=2
  7. Add the content Editor Web part to the page
  8. Click the source editor button
  9. Add the following:

<script src="http://intranet/javascript/jquery.js"></script>

 

<script src="http://intranet/javascript/spff.js"></script>

 

<script>

$(function(){

                $.spff();

});

</script>

  1. Click ok and apply the changes
  2. And that is IT!
Jul 3, 2010 at 7:21 PM

I've taken these steps, I know my paths are right (I tested it by adding an alert function to one of the JS files)... but it still won't let me manipulate form fields with URL strings.  For example, my form has a field labeled "Subject", so I went to this URL:

http://sharepoint/sites/Lists/Form/NewForm.aspx?Subject=Test

And yet the Subject field of my form does not populate with the word "test".  Any ideas?

 

 

Coordinator
Jul 20, 2010 at 8:23 PM
Double check that you published/approved the page if you are using that feature.
Aug 7, 2010 at 7:46 PM
hi there... still can't seem to get it to work. I've done this before a few years ago (probably using another method, because I recall needing to edit the NewForm.aspx page directly in SharePoint designer), but now I can't get it to work. I wish I had taken some notes all that time ago. I just realized this code says it works with 2007, but we're on SharePoint 2003... do you know any references for me to accomplish this? I've been googling, but haven't found anything familiar or viable yet.
Sep 27, 2010 at 1:11 AM

@CmdrKeene - Are you referring to Microsoft Office SharePoint Portal Server 2003, or WSS 3.0?

@jp9757 - I have created a SharePoint solution file which includes two features. One to deploy jQuery and the other to deploy spff (with dependency to the jQuery feature). All js files get deployed to the 12 hive and are referenced in the master/layout pages through the AdditionalPageHead delegate control. The upside is that the function is available to all pages and end users are only required to add the relevant query params to get it to work as expected. The downside, of course, is the additional page load on those which don't require it. :\

Sep 27, 2010 at 4:52 PM

We just upgraded to MOSS 2007, so I'll give this another try and post back.

Sep 28, 2010 at 9:02 AM
It works like a charm. I've bundled SPFF and jQuery as features into a single SharePoint solution. Happy to provide it if that makes it easier for you.