+ Start a Discussion
Naveen DhanarajNaveen Dhanaraj 

write a class and trigger if the attempt is very first time the status should not be equal to Inprogress or completed. if it is it should throw an error

Naveen DhanarajNaveen Dhanaraj
In this i have a student and attempt as a object and in attempt i have lookup field as student ,status as picklist(values= inprogress , completed)
Amit Chaudhary 8Amit Chaudhary 8
Hi Naveen,

I will recommend you to please start developing your code and we will help you.
For learning please use trailhead i hope that will help you
1) https://developer.salesforce.com/trailhead/module/apex_triggers

Let us know if this will help you

Amit Chaudhary
Naveen DhanarajNaveen Dhanaraj
Thanks !!!!!@ Amit Chaudhary 8