mixed multiLevelData()
In the subordinate questionnaire, the function multiLevelData() returns the data that was specified as the second parameter in multiLevelDown().
For details on the multi-level function, see Multi-Level Design.
For example, the superordinate questionnaire can pass a serial number and a description:
$i = loopIndex(); $num = $i + 1; $desc = value(id('AB01', $num)); // Create an array with two elements for number and description $data = array( 'num' => $num, 'desc' => $desc ); // Call the subordinate questionnaire "sub01" and pass this data multiLevelDown('sub01', $data);
In the subordinate questionnaire, this data can then be used:
$data = multiLevelData(); html('<p>Number '.$data['num'].'</p>'); replace('%title%', $data['desc']);