Billy Coffin (BillyC18)
Srclogic LLC

Srclogic LLC
BillyC18 Member since 2018 4 posts
Srclogic LLC
Posted: August 21, 2019
Last activity: 1 week ago
Posted: 21 Aug 2019 10:29 EDT
Last activity: 14 Jun 2021 7:38 EDT

Client Side Validation onchange event

The use case is performing validation on a form after a user updates the value. I have followed the steps suggested by Pega's Client-side validation with Javascript but am stuck. Here is what I have done so far:

Created a js text file

Referenced the text file on the proper harness

Write the correct logic to determine if the value is valid or not. I have proven that it has worked with logging the tests in the browser.


I am unsure of how to use the Javascript functions in the pega_validators and csvalid text files. What I have tried is making a "validation object" which consists of the input element and the error message and passing this object to the function display_getValidationError (from pega_validators) but this is not creating the necessary elements in the DOM to show the error as Pega would for an empty required field (example).

Does anyone have experience replicating field-level errors using Javascript?


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.