I am trying to figure out how my system is validating fields on an Opportunity. We have two required date fields on the page, one for the closing date and another to capture the date the User is expecting the first shipment if the Opportunity is won.
Currently, our validation rules require that the date the User enters in the first shipment field must be AFTER the close date (e.g. If closing date = n then the first shipment date must be at least n+1). I want to adjust the rule so that the first shipment date can be the same as the closing date or later.
When I look for the validation section of the Opportunity page with the two fields I find this at the bottom of the script:
The academy shows a different script when describing validation schema (see below) which leaves me at a bit of a dead-end. Any idea how validations might be implemented and how I might access the code?
Thanks in advance!
Like
Good day, Greg,
Thank you for reaching out to us.
If we understand you correctly, the Academy page you are consulting with is "Implement the validation of a field value on a page". This article describes how code-based field validation can be implemented in Freedom UI and it only shows examples of such implementations.
If you are not locating any code in "validators" of your Opportunity pages, please make sure that:
- The logic is implemented in Freedom UI
- The logic is not implemented by some other means, such as Business Rules
- That you are verifying the code in the correct package.
For example, out of the box, the Opportunities_FormPage code is spread out across several packages:
If the implementation is done via code, it may be located in a custom package that is not in the last position in the hierarchy. Alternative code-based methods of validation implementation may also have been implemented on your site.
In the event you are still facing issues locating the logic responsible for date validation, please contact us on our <support@creatio.com> address so we may connect to your environment and examine its setup.
Thank you for reaching out to us!