function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gwirizanani SinoiaGwirizanani Sinoia 

A button to validate if a list of fields on three objects are blank against Custom settings list >> before committing to database?

Components are :
Object A has a one to many realtionship with B and C
Object B
Object C
CustomSeting records

Scenario
As a user I need the ability to select Save button which will do the following validations before committing to the data base
  • Check if Object A fields listed in CustomSeting records are blank
  • Check if Object B fields listed in CustomSeting records are blank
  • Check if Object C fields listed in CustomSeting records are blank
If so a popup should appear to allow the user to add required values on those blank fields. 

Happy to know your thoughts.
Thanks in Advance
 
ShirishaShirisha (Salesforce Developers) 
Hi Sinoia,

Greetings!

Can you please confirm,how do you have the fields of various Objects on Custom Setting.If you have the relationship fields then you can simply validate the fields based on the Custom Setting which is same as Custom Object.

Reference:https://developer.salesforce.com/forums/?id=906F00000008w3MIAQ

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri