Skip to content

How to display text areas in the form instead of input fields

Franziska Zander edited this page Oct 15, 2019 · 2 revisions

To enforce a text area you have to define maxLength in the xsd, which is above 256

example for input field (maxLength below 256 or not given!):

  <xsd:simpleType name="stringEmptyShort">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="0" />
      <xsd:maxLength value="256" />
    </xsd:restriction>
  </xsd:simpleType>
  
  <xsd:simpleType name="stringNotEmptyShort">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="1" />
      <xsd:maxLength value="256" />
    </xsd:restriction>
  </xsd:simpleType>

example for text area (maxLength above 256)

<xsd:simpleType name="stringEmptyLong">
    <xsd:restriction base="xsd:string">
      <xsd:minLength value="0" />
      <xsd:maxLength value="10000" />
    </xsd:restriction>
  </xsd:simpleType>
  
  <xsd:simpleType name="stringNotEmptyLong">
		<xsd:restriction base="xsd:string">
			<xsd:minLength value="1" />
			<xsd:maxLength value="10000" />
		</xsd:restriction>
	</xsd:simpleType>
Clone this wiki locally