i want to disable edit button in two condition:
1 - lets say i have two radio buttons in record add page one as " Save" and the other as "Draft"
2 - as long as user adds the record with "Draft" radio button selected, edit function is enabled
3 - if the user saves the record with " Save " radio button selected, then record cannot be edited.
can anybody please help me to do this.
Thank you