Forum

Thread tagged as: Question

Perch content select

Is it possible to add a select option in perch content, and have it render with values assigned. Instead of editors typing manually, they can just choose from the select box.

Like something the template below. But it's not rendering any output to html

<perch:repeater id="text" label="Labels">
<perch:if exists="otherinfo">
<p><strong><perch:content id="labeloption1" type="select" label="label title" options="Username|password,Password|password" allowempty="false" required="true" />   </strong>: <perch:content id="otherinfo1more" type="text" label="Label content" required="false" title="false" /></p>
</perch:if>
</perch:repeater>
Edward Johansen

Edward Johansen 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is the field otherinfo set anywhere in the rest of your template? You're checking for it, so if it's not set you'll not get any output.

Thanks Drew. I figured it out after posting. Silly me :)