Question

10
Replies
401
Views
Close popover
Sitthanat Champerat (SitthanatC)
Kasikornbank Public Company Limited
Software Engineer
Kasikornbank Public Company Limited
TH
SitthanatC Member since 2017 7 posts
Kasikornbank Public Company Limited
Posted: May 14, 2020
Last activity: May 21, 2020
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 Experience Financial Services System Architect