HomeGuidesRecipesAPI
HomeGuidesAPILog In

Project fragment outputs

A fragment Output is a single result that references one or more questions, calculations, data source etc. within the fragment’s question set. The Output is available for reference when the fragment is utilized within another project.

Fragment outputs apply to both Fragment Pages and Fragment Portions alike. Available outputs can be seen by expanding the fragment’s ‘Outputs’ node at the end of the question set. New outputs are available by right-clicking the Output Node.

When a fragment is utilized within another project in Design, the fragment outputs can be referenced just like any other question/answer. Bookmarks may also be added directly to the outputs too.

Defining Project Fragment Outputs

  1. Create a fragment type project.
  2. Add a Question and answer and change the name to 'Student Name'.
  3. Under 'Outputs', right click and add an output.

  1. Save the project fragment.

Referencing Defined Outputs

  1. Open or create a project in Design.
  2. Add the fragment created above.
  3. Reference or map the placeholder to the Fragment’s output as shown in the screenshot below:

  1. Save your project and test in Produce.

Fragment Output Defaults

When a Fragment Output is added, SmartIQ will automatically select a default answer for the question. When multiple answers are available (Formulas and Multiple Select) the first available answer will be selected.

First Name Answer Selected by DefaultFirst Name Answer Selected by Default

First Name Answer Selected by Default

A Answer Selected By Default for FormulaA Answer Selected By Default for Formula

A Answer Selected By Default for Formula

For Multiple Choice Questions, there's no need to use a =concat() formula in the middle to pass the string value of the selected value(s) into the fragment output; a new option has been included (Selected Value) and will be selected automatically.

"(Selected Value)" Answer Selected By Default for Multiple Choice"(Selected Value)" Answer Selected By Default for Multiple Choice

"(Selected Value)" Answer Selected By Default for Multiple Choice

Repeating Actions by Project Fragment Outputs

Project Fragment outputs can be defined as repeaters when they take data from Repeating references such as Repeating Sections or Datasources. In order to define a Fragment Output as a Repeater, you need to define the type as Repeat.

Repeating Fragment Output referencing a question inside a Repeating SectionRepeating Fragment Output referencing a question inside a Repeating Section

Repeating Fragment Output referencing a question inside a Repeating Section

Then you can easily reference the Fragment Output from a parent project, repeating the Action based on it.

Action can be repeated based on Fragment Output.Action can be repeated based on Fragment Output.

Action can be repeated based on Fragment Output.