Modern Request Properties - prevent submission on validation failure

v9.0 LTS (CU3)

I'm trying to work through the modern request properties in the Angular portal. For the most part I have the majority working, however I do have a few issues that I can't seem to work out.

Throw New VIException will correctly display the banner with the message, however it doesn't appear to stop the addition of the item to the cart. Is there a way to stop additions until validations have passed (similar to how you could disable the Submit button in the portal while validations fail)? I have even tried setting the corresponding value to an empty string, set the field as mandatory, and also have validation that the field is not empty. Despite this, there is still ways to add to cart despite the validations not being checked.

I tried Markus's suggestion from this post regarding the IsReadOnly flag. However, the field is still editable in the portal.

I also need to write one of the parameters to PersonWantsOrg to satisfy existing workflow requirements. I looked at the example Twin Mark posted, but the language syntax didn't appear to align and wasn't making much sense. What is the best way to copy the value across so that the approval workflow has the information when it is instantiated?

I would post images, but the only way is via a URL.

Parents Reply
  • Thanks Niels, I'll keep an eye on that one and feedback to our team.

    Yeah, behaviour I saw did seem to be related to onChange versus onBlur as you can change a field to an invalid value and then hit Apply to save that invalid data.

    I also saw some very bad slowness (i.e. The exception message would show, but it would take ages for the field to be set to "").

Children
No Data