0

my Opportunity object includes a Lightning Component Detail with a field that needs to be validated when setting the opp to closed won. Is there any way I can validate the field in a declarative way (e.g. with Validation Rules)? Or does this need to be made programmatically?

3
  • 4
    Can you be more specific? What does your LWC do or can you edit and share code? Jan 13 at 16:48
  • Your lightning component should be irrelevant in this situation. If the field writes to the Opportunity object then a validation rule will do the job (and is probably preferable for any other situations where you're setting an opportunity to Closed/Won).
    – nbrown
    Jan 14 at 21:40
  • @nbrown thank you for the suggestion. This helps me further. Jan 17 at 15:22