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

SPCascadeDropdown page refresh again...

Oct 23, 2012 at 11:08 AM


I know this topic has been covered several times already but I think my scenario is slightly different?

I have a custom form with several text fields and 8 lookup fields to multiple libraries. Of the 8 lookup fields 7 are controlled using the SPCascadeDropdown function. Within the custom form I have 1 button which adds a value to that lookup column via a modal pop-up window.

The button works fine and after adding an additional item to my lookup list I am returned to my original custom form.... but only some of the fields have been cleared. My text boxes are still intact and 3 of my 8 lookup filed's still contain the input data. 2 of 3 are using SPCascadeDropdown. My question is why?

From the previous posts i've read other users seem to suggest that all data from the form is removed, for me this is not the case?

Any help appreciated.

Oct 25, 2012 at 6:17 PM

I think you're going to give me some more information for me to help you.

How does your modal pop-up work? If the original form isn't refreshed on adding a new values, you won't be able to save the form with that value without getting an error.


Oct 26, 2012 at 10:05 AM
Edited Oct 26, 2012 at 10:18 AM

Thanks for the reply.

I am using SP 2010 Foundation with SPServices 0.7.1a.

I have a custom list and a document library. The document library is a lookup column from the custom list and the contents of the document library are displayed based on the selection from a dropdown which is controlled using SPCascadeDropdown. I would like the ability to add documents to the document library without having to leave the NewForm.aspx form of the custom list. I can do this by adding the below code to the NewForm.aspx page which launches the modal dialog box for the document library.

<input name="Button1" type="button" value="add document" onclick="javascript:NewItem2(event, &quot;http://server/app/_layouts/listform.aspx?PageType=8&amp;ListId=D6087103-3C70-4113-A91A-61CF4F380964&amp;RootFolder=&quot;);
javascript:return false;" href="/_layouts/listform.aspx?PageType=8&amp;ListId=D6087103-3C70-4113-A91A-61CF4F380964&amp;RootFolder=" target="_self"/>

This works fine and the document is added but, when the document library modal closes and the custom list newform.aspx is displayed some of the data has been removed from the dropdowns which are controlled by the SPCascadeDropdown function. All other text boxes remain populated and I can see the newly created document.

Hope this make sense! I will take some screenshots and embed so you can see the issue.

EDIT:  I think my issue is similar to this - but the majority of my data remins intact.