Question

10
Replies
182
Views
SitthanatC Member since 2017 7 posts
Kasikornbank Public Company Limited
Posted: 4 months ago
Last activity: 4 months ago
Solved

How to create custom control like pxTextInput that can display error message below text box?

Hi,

I've created a custom control like pxTextInput to disable paste as below.

 

<pega:choose> <pega:when test="$mode-input">     <pega:include name="Messages"/>     <input type=text onpaste="return false;"      name="<pega:reference name="$this-name" />"      value="<pega:reference name="$this-value" />"      size="16" maxlength="16"      <pega:include name="Attributes" />     <pega:include name="ClientValidation"/>     id="<pega:reference name="$this-Definition(pyPropertyName)" mode="NORMAL" />" /> </pega:when> <pega:otherwise>     <b><pega:reference name="$this-value"/></b> </pega:otherwise> </pega:choose>

 

My custom control can show missing require field error message correctly as expected like pxTextInput does. But if I enter the value that will be failed at validation, my custom control cannot show error message like pxTextInput. Please see picture in attached document.

How to set my custom control to behave like pxTextInput? I tried to find the jsp code of pxTextInput but I cannot find it.

Thank you,

 

Pega Platform 7.1.7 User Interface Financial Services System Architect
Share this page LinkedIn