Okay… I am not looking to set permission to a specific field.
I am looking to set permission to a doctype, based on the field value.
Let’s take the Leave Application itself,
Consider we have an doctype leave application which contains the field, approver.
Now Lets say we have 5 Leave Approvers and I can choose any one while filling up the form.
Once I select an approver. This Leave Application which I am going to submit must be visible only to the approver whom I selected.
This Application Should not be visible to other approvers.
If I set Doctype permissions to the Role Approver, all of the approvers are able to view the form. But I want is that only the approver whom I select in the form should be able have read write access. How do I achieve this. ?