I am currently working on a project in SP 2010 that is requiring dynamic cascading dropdowns in addition to showing information on two out of three selections made. I have successfully got the dynamic cascading dropdowns to work as intended by itself. However when I add in the display related info functionality I start to have issues.
First dropdown selection is a lookup column from ListA to allow selection of a main category.
Second dropdown is looking at the First, and providing a selection of questions from ListB with relation to the category.
Third dropdown is looking at the Second, and providing a selection of answers from ListC with relation to the question.
The desired use of the display related info is to show the full text of the question selected and the full text of the answer selected. The reason for this is that the questions/answers full text is large and has potential to change based on business needs, but the question/answer selections do not.
Below is my current code. with it as is, the first two dropdowns and first display related information works fine. However, the third dropdown returns (None) and as a result does not display any related information. If I remove the display related info functions, the dropdowns work as inteded.
First dropdown selection is a lookup column from ListA to allow selection of a main category.
Second dropdown is looking at the First, and providing a selection of questions from ListB with relation to the category.
Third dropdown is looking at the Second, and providing a selection of answers from ListC with relation to the question.
The desired use of the display related info is to show the full text of the question selected and the full text of the answer selected. The reason for this is that the questions/answers full text is large and has potential to change based on business needs, but the question/answer selections do not.
Below is my current code. with it as is, the first two dropdowns and first display related information works fine. However, the third dropdown returns (None) and as a result does not display any related information. If I remove the display related info functions, the dropdowns work as inteded.
<script language="javascript" src="/sites/SiteAssets/DynamicForms/jquery-1.10.2.min.js" type="text/javascript"></script><script language="javascript" src="/sites/SiteAssets/jquery.SPServices-2013.02a.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function() {
$().SPServices.SPCascadeDropdowns({
async: false,
relationshipList: "{xxx-xxx-xxx-xxx-xxxx}",
relationshipListParentColumn: "FunctionKey_Feeder",
relationshipListChildColumn: "QuestionRef",
parentColumn: "Process",
childColumn: "Question",
});
$().SPServices.SPDisplayRelatedInfo({
async: false,
columnName: "Question",
relatedList: "{xxx-xxx-xxx-xxx-xxxx}",
relatedListColumn: "QuestionRef",
relatedColumns: ["FullText"],
displayFormat: "list",
// headerCSSClass: "ms-hidden",
});
$().SPServices.SPCascadeDropdowns({
async: false,
relationshipList: "{xxx-xxx-xxx-xxx-xxxx}",
relationshipListParentColumn: "QuestionRef",
relationshipListChildColumn: "AnswerRef",
parentColumn: "Question",
childColumn: "Answer",
});
$().SPServices.SPDisplayRelatedInfo({
async: false,
columnName: "Answer",
relatedList: "{xxx-xxx-xxx-xxx-xxxx}",
relatedListColumn: "AnswerRef",
relatedColumns: ["AnswerFullText"],
displayFormat: "list",
// headerCSSClass: "ms-hidden",
debug: true,
});
});</script>