Wednesday, April 15, 2015

Cascading dropdowns now supports multi choice

I have updated the cascading dropdown solution to support multi choice in all positions. Refer this article for setup instructions and background information.


To use multichoice on the select, you must use a multiline plain text field as “placeholder”, and address the field like the field “ThisListField2″ in the “spjs.casc.init” function:



spjs.casc.init({
lookupList:"NameOfYourList",
lookupListBaseUrl:"BaseUrlOfYourList",
lookupListFields:["LookupListField1","LookupListField2"],
thisListFields:["ThisListField1","ThisListField2:multi"],

Edit form

IMG


Display form

IMG


List view

IMG


If you plan to use this with DFFS you must update to DFFS backend v4.259 to support the “:multi” suffix in the cascading dropdown configuration.

Post any questions in the forum


If you do not already have a forum user, look at the sticky post Register for a user account.


Alexander




by Alexander Bautz via SharePoint JavaScripts

No comments:

Post a Comment