Forum

Thread tagged as: Question, Field-Types

HTML in select field type

Hey,

I'd like to add some HTML to a select field type but this causes the page to break. Is there a way I could achieve the following?:

<perch:content id="stand" type="select" label="Size of Stand" options="Up to 50m2<sup>2</sup>, 50m<sup>2</sup> - 200m<sup>2</sup>, Over 200m<sup>2</sup>, Experiential" allowempty="false" required="true" order="4" />
Richard Wiggins

Richard Wiggins 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can't use HTML tags, but you can just use unicode.

<perch:content id="stand" type="select" label="Size of Stand" options="Up to 50m², 50m² - 200m², Over 200m², Experiential" allowempty="false" required="true" order="4" />

Of course, don't know why I didn't think of that!

Thanks Drew.