This project has moved and is read-only. For the latest updates, please go here.

Child dropdown getting Invisible on 'simpleChild: true'

Dec 29, 2011 at 6:04 PM
Edited Dec 29, 2011 at 6:13 PM

Hi Marc,

Thanks a lot for the really great solution. I used it several places and it worked like charm.

However, currently I am facing one small issue. 

On my Custom Page layout Parent and Child Dropdown (for lookup columns) was working fine.

Until, I have a need to convert it into  Simple dropdown. so I just made one change "simpleChild: true" as per the documentation.

However, instead of converting it to simple dropdown,  child field's dropdown getting invisible from the page.

FYI, I am using $().SPServices.SPCascadeDropdowns function on Custom Page Layout.

I will appreciate any help or suggestion on this.


Dec 29, 2011 at 6:18 PM


If you're using the function on a customized page, it's hard to say. Obviously, I can't predict everything someone might do in their customizations. What have you done in your page?


Dec 29, 2011 at 6:31 PM

Thanks for the prompt reply.

On Page layout - In EditMode Panel I have following 2 fields

<SharePointWebControls:LookupField FieldName="Project" InputFieldLabel="Organization *" runat="server"> </SharePointWebControls:LookupField> <br /> <SharePointWebControls:LookupField FieldName="Package" InputFieldLabel="Package *" runat="server"> </SharePointWebControls:LookupField>

and On Javascript...

relationshipWebURL: "", 
relationshipList: "Packages", 
relationshipListParentColumn: "Project", 
relationshipListChildColumn: "Title", 
relationshipListSortColumn: "", 
parentColumn: "Organization", 
childColumn: "Package", 
CAMLQuery: "<Eq><FieldRef Name='Status' /><Value Type='Text'>Active</Value></Eq>", 
listName: $().SPServices.SPListNameFromUrl(),  
promptText: "Choose {0}...", 
simpleChild: true,  
selectSingleOption: false,
completefunc: null, 
debug: false

as I said it was working fine until I made change 'simpleChild: true'.


Dec 30, 2011 at 2:10 PM


Since you're using a customized page, the function may not be finding the bits it needs in the DOM. You might want to look at the function and compare its selectors with what you have in the DOM. It's possible that you could tweak it to meet your needs.


Feb 7, 2012 at 9:04 PM

Hi Marc,

Thanks a lot for the reply. That did helped me.

as I don't have any TD on my page, it was not adding back newly generated Simple Dropdown.

so I need to make following change for that.

In SPComplexToSimpleDropdown function,

I replaced following line 


with following line.

$(columnSelect.Obj).closest("td, div").prepend(simpleSelect);

this line will find nearest td or div whichever comes first.

Hope this will help to someone else.

- Nilang