Question

2
Replies
554
Views
Hermy Reynolds (Hermy64)
Wells Fargo
Software Engineer
Wells Fargo
US
Hermy64 Member since 2015 19 posts
Wells Fargo
Posted: October 8, 2019
Last activity: October 9, 2019
Posted: 8 Oct 2019 11:55 EDT
Last activity: 9 Oct 2019 14:25 EDT
Closed

Custom control and validation messages

Problem:


I have need to create a custom control and I need to know how to display the standard validation messaging with it when it fails validation.


Details:


I had this in my notes from version 6.x years ago but it doesn't work properly in newer versions (currently on 7.4). I suspect it was replaced by something different but I cannot find any stream rule by the name Messages.



<pega:include name="Messages"/>


It renders almost entirely off-screen (or at least off-layout) except a couple pixels of the icon which is below the field and rendered over the next field's label. The validation text is entirely not rendered. Shown here is Customer name which is an OOTB control for reference, Account Number (DDA) which is the custom control with the issue, and Card Number to illustrate the issue with rendering.



Here's the snippet of code from the control where this occurs.

Problem:

I have need to create a custom control and I need to know how to display the standard validation messaging with it when it fails validation.

Details:

I had this in my notes from version 6.x years ago but it doesn't work properly in newer versions (currently on 7.4). I suspect it was replaced by something different but I cannot find any stream rule by the name Messages.

<pega:include name="Messages"/>

It renders almost entirely off-screen (or at least off-layout) except a couple pixels of the icon which is below the field and rendered over the next field's label. The validation text is entirely not rendered. Shown here is Customer name which is an OOTB control for reference, Account Number (DDA) which is the custom control with the issue, and Card Number to illustrate the issue with rendering.

Here's the snippet of code from the control where this occurs.

<SPAN nowrap>
    <input
        <pega:include name="Attributes" />
        <pega:include name="ClientValidation"/>
        id="myFieldID"
        type=text
        data-ctl='["TextInput"]'
    />
    <pega:include name="Messages"/>
</SPAN>

***Edited by Moderator Marissa to update platform capability tags****

Low-Code App Development Case Management User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.