Quick little post here about something that came up on a project.
If you need to set an attribute of a field that the inputText bean does not have the attribute for, such as the TYPE attribute prior to 8.5.3, you can do so using javascript. Follow the field with a little script block that looks like this:
<xp:scriptBlock
value="document.getElementById('#{id:StartDate}').setAttribute('type', 'date');">
</xp:scriptBlock>
If you need to set an attribute of a field that the inputText bean does not have the attribute for, such as the TYPE attribute prior to 8.5.3, you can do so using javascript. Follow the field with a little script block that looks like this:
<xp:scriptBlock
value="document.getElementById('#{id:StartDate}').setAttribute('type', 'date');">
</xp:scriptBlock>
Comments
Post a Comment