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
Nikhil Tripathi 13Nikhil Tripathi 13 

# Prevent from record Creation

Hi ,

We have 3 custom objects , Service Requests , Service Visit and Inspection. 
And the below relationships exists between them.
Service Request and Service Visist have look up ( Service Request Parent) and Service visit and lnspection have look up (Service Visit Parent).
Requirement is like. Service visit have a picklist field progress of visit with values(1st visit, Continuation of visit and Material Handover).
Whenever the user is creating 2nd visit and from progess of visit , if continuation and material handover is not selected , it should prevent from creation inspection records.