Cascading dropdown list in SPFx web part

SharePoint Asked by Burre Ifort on November 29, 2020

Can someone help me with this issue as I would like to create cascading dropdown lists inside the web part itself and not in the property pane.

I have found this code in [github react-custompropertypanecontrols” which does exactly what I want but I want them to be displayed in the web part itself.

Any help, please?

One Answer

You can do this using SPServices

$().SPServices.SPCascadeDropdowns({ relationshipList: "States", relationshipListParentColumn: "Country", relationshipListChildColumn: "Title", parentColumn: "Country", childColumn: "State", debug: true });

You can check the example in the below link

The below image is very helpful to avoid confusion with using it

enter image description here

Answered by Ashik Paul on November 29, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP