0

I implemented cascading dropDown for my list with default form newform.aspx and it works fine.

But if I try to create custom form by sharepoint designer, and when i I implemented cascading dropDown for fields in this form, the filter doesn't work

so , could you help me to implemented cascading dropDown for custom form Thanks in Advance

3
  • Can you post your code please?
    – lazoDev
    Feb 8, 2017 at 18:49
  • This code for the default form newform.aspx , and it works fine as the same code for my customform.aspx , but its not works Feb 9, 2017 at 7:10
  • <script language="javascript" type="text/javascript" src="......../jquery-1.11.3.min.js"></script> <script language="javascript" type="text/javascript" src="......../jquery.SPServices-2014.02.min.js"></script> <script language="javascript" type="text/javascript"> $(document).ready(function() { $().SPServices.SPCascadeDropdowns({ relationshipList: "Regions", relationshipListParentColumn: "country", relationshipListChildColumn: "Title", relationshipListSortColumn: "ID", parentColumn: "Country Required Field", childColumn: "Region Required Field", debug: true}); </script> Feb 9, 2017 at 12:40

1 Answer 1

1

@taher: The reason the function isn't working on your custom form is most likely that the DOM is different. SPCascadeDropdowns looks for very specific elements in the page based on the DOM for the standard forms.

Once you've customized the form, you're pretty much on your own. You can always write something to do the cascading yourself, or fork the SPServices code to look for the elements you have in your customized page.

16
  • @Mr.Marc: Could you please help me to solve this Issue ? with Thanks Feb 9, 2017 at 12:38
  • using jquery.SPServices-0.7.2.min.js , and jquery-1.8.2.js ,, the SPServices code works fine with default and custom forms , but the problem with this release is not works for the required fields , so i am using the jquery.SPServices-2014.02.min.js release with jquery-1.11.3.min.js ,,, so this release solve the filter with required fields , but it have Issue with Custom forms Feb 9, 2017 at 12:39
  • @taher: I explained what you need to do above. I can't really fix it for you; you'll need to do some coding. And you definitely should be using 2014.02 in all cases. Nothing older. Feb 9, 2017 at 14:22
  • i am running SharePoint Online, and i am using jquery.SPServices-2014.02.min.js with jquery-1.11.3.js Simply we tried using SPCascadeDropdowns documented with Countries,Regions And States Example at the link below : spservices.codeplex.com/… i faced an issue when I tried to make the fields (Country and Region) on the state list as required, the SPCascadeDropdowns works fine only for the standared Forms (NewForm.aspx , EditFrom.aspx ) But its not work for the customForm.aspx Feb 9, 2017 at 14:26
  • And if we change the Fields As non-required , the SPCascadeDropdowns works fine for the standards and customs Forms Feb 9, 2017 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.