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

  • Can you post your code please? – lazoDev Feb 8 '17 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 – taher mohammad Feb 9 '17 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> – taher mohammad Feb 9 '17 at 12:40
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.

  • @Mr.Marc: Could you please help me to solve this Issue ? with Thanks – taher mohammad Feb 9 '17 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 – taher mohammad Feb 9 '17 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. – Marc D Anderson Feb 9 '17 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 – taher mohammad Feb 9 '17 at 14:26
  • And if we change the Fields As non-required , the SPCascadeDropdowns works fine for the standards and customs Forms – taher mohammad Feb 9 '17 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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