Hi,
Project Description
A JavaScript module, using jQuery, for manipulating SharePoint form fields from the URL.
SPFF
The SharePoint Form Field Assistant can be added to any
new or
edit
form in SharePoint 2007. With SPFF loaded, you can manipulate form
fields through query string parameters. Current manipulations
supported: hide field, prepopulate field, prepopulate and lock field.
Getting Started
Add jQuery and spff scripts to a SharePoint page that also has one or
more form controls. Add a document.ready instruction like the following:
$(function(){
$.spff();
});
Form Manipulations
Hide
Append the field's name, equal sign, and an underscore. Setting a
field's value then hiding it is not supported. To prevent manipulations
of a prepopulated field, see SPFF Options: lock.
Example:
https://servername.com/site/Lists/Tasks/EditForm.aspx?ID=4&Assigned%20To=_
Other methods for invoking spff include restricting the page type it applies to:
$(function(){
if(window.location.pathname.split('/').reverse()[0]=="NewForm.aspx"){
$.spff();
}
});
This script can be safely added to an entire site through
the .master page. However, for individual form pages, use a Content
Editor Web Part. To reach the Edit Page menus, append
?PageView=Shared&ToolPaneView=2 or
&PageView=Shared&ToolPaneView=2
to the URL of the form page and navigate to the new URL. Add the CEWP
with jQuery (if not already on the page) and the spff script.
To
only load spff conditionally, based on user group, the MOSS version of
the CEWP can make use of audience targeting. As a result, only the
specified groups will process spff instructions in the URL.
For more information please refer to the below link.
http://spff.codeplex.com/
Hope it helps you.