FormsByAir logo FormsByAir


I need to output special condition items as Display Content in a form. The items are from a repeater item, so there may be one item, or there could be 10. Ideally I’d like the items output as an alpha list. This is the syntax I’m trying to add to the Display Content in the form:

<ol type=”a”>

<<[ForEach:SpecialConditionItems[</li>]:<li><<SpecialConditionItem>>]>>

</li></ol>

I’ve tried adding the above syntax to both the Code Editor and directly into the Editor.

Above code added to Code Editor:

enter image description here

Preview in Editor after adding above code:

enter image description here

Check code after preview in editor - syntax has been translated:

enter image description here

Adding syntax/html code directly into Editor:

enter image description here

The above is then translated to:

enter image description here

Form output if I use the above option: enter image description here

In principal, this option is at least outputting the repeater items BUT how do I stop the html code being converted to text so the form output reads the html code?


1 Answers

Answer by Anonymous ✅ (Accepted)

You can generate a bullet point list in Display Content as follows…

<div>&lt;&lt;[ForEach:SpecialConditionItems[<br>]:* &lt;&lt;SpecialConditionItem&gt;&gt;]&gt;&gt;</div>

This uses markdown syntax for each bullet point, and ensures the PDF output will also be a bullet point list.

Unfortunately using HTML syntax for a numbered list <ol><li> isn’t going to work, this also wouldn’t render in PDF output.