?
Use Spservice 's spcascadedropdowns to achieve.
can refer to http://www.cnblogs.com/Sunmoonfire/archive/2010/09/11/1823678.html to implement.
- Download Spservice JS package, get from http://spservices.codeplex.com/
- download jQuery js package, get from www.jquery.com , recommend 1.10 or above version
- will be Spservice and jQuery packages are uploaded to a SharePoint site's document library, such as the site Asset Library
- first verify that the uploaded JS package is available, refer to http://sympmarc.com/2011/07/08/ adding-jqueryspservices-to-a-sharepoint-page-step-one-always/
- Create Country and state site columns, and added to the list or document library to which you want to use cascading
- Open the list of NewForm.aspx page, can be opened directly in IE , such as http://SPServer/List/NewForm.aspx
- Click Site Actions, edit page, add a Content Editor webpart, click the Content Editor's content box, select Html-> on the Ribbon to edit the HTML source code
- Create a list that needs to be cascaded, such as Country,state, where the state list contains country 's Lookup bar
- Enter the following JS script in the popup dialog box
<script language= "javascript" src= "/siteassets/jquery-1.10.2.js" type= "Text/javascript" ></script>
<script language= "javascript" src= "/siteassets/jquery. Spservices-2014.01.min.js "type=" Text/javascript "></script>
<script language= "javascript" type= "Text/javascript" >
$ (document). Ready (function ()
{
$(). Spservices.spcascadedropdowns (
{
Relationshipweburl: "/",
Relationshiplist: "State",
Relationshiplistparentcolumn: "Country",
Relationshiplistchildcolumn: "Title",
ParentColumn: "Country",
Childcolumn: "State",
Debug:true
});
});</script>
- Create a new project that should now be available in the native The Cascade list item is implemented in the Form.
SP2010 cascading lists with jquery