Hello Trishla,
Depends how the lead is connected to the user account. I would recommend however a solution with entity access rules.
https://docs.mendix.com/refguide/access-rules/#xpath-constraint
For example:
When Lead has an association towards User you can add at your entity Lead a constraint at the like this:
[YourModuleName.Lead_User='[%CurrentUser%]']
By having this association and when it's set (important part :) ) only then an user can edit.
Thijs
Hi Trishla,
I hope the lead entity is generalized from Account/User entity.
If that is the case, you can a button with visibility condition as $CurrentObject = $currentuser