I am trying to create a comprehensive interface consisting of the "Menu Item" screen (type = "6") at the top and the text input screen (type = "5") below. I want the menu item screen to go to a different screen than the text item screen, although I have to put the text item screen in the nextQuestionKey attribute.
I tried this with a restriction on the "Menu Item" screen, as shown in the code below, but the validator tells me that "Branching is not allowed."
I tried to move the restriction to the text input screen. There, the validator tells me that "The menu screen on a complex screen that is not at the end should provide a valid predefined navigation response of the attribute typeType = 72"
<question key="15" type="6" backNavigationAllowed="true" sortAnswersByClientKey="false"> <answer key="15_1" nextQuestionKey="16" clientKey="CK#15"> <text>Scan barcode</text> </answer> <restriction nextQuestionKey="17" position="0"> <condition>getAnswerValueByClientKey($answer:"15_1", "CK#15") != ""</condition> </restriction> <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="0" gridPosX="0" gridPosY="0" gridWidth="1" gridHeight="1" linearHeight="1" groupTitle="Input Asset number"/> </question> <question key="16" type="5" backNavigationAllowed="true" sortAnswersByClientKey="false"> <answer key="16_1" nextQuestionKey="18" clientKey="CK#16" columnSizeType="ROWS"> <text>Enter barcode manually</text> </answer> <answer key="16_2" nextQuestionKey="18" clientKey="CK#16" columnSizeType="ROWS"> <text>Reason</text> </answer> <complex linearGroupId="InputAssetNumber" gridGroupId="InputAssetNumber" linearInnerScrollbar="false" gridInnerScrollbar="false" gridHorizontalLayout="false" linearPos="1" gridPosX="0" gridPosY="1" gridWidth="1" gridHeight="1" linearHeight="1"/> </question>
I would appreciate if someone would help me find a solution to this problem.
source share