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 wanted to show the error before the form is submitted while the user is still working. I am checking one property against two other properties, one that holds a comparator (<, >, or =) and another that holds a numerical value. I can achieve this with a when rule and a label (attached picture), but ideally the Pega error should be displayed for uniformity (includes label formatting and error icon).