Hi all,
Im building an leave application. In this when an user opens the screen the Datafield automatically reads the user ID by the below code.
User().FullName
After user creates the leave record, it goes to the supervisor for approval.
On a separate page, the records are be available for the manager using a gallery to view the pending records by filter.
Everything works fine on the new form when the user creates.
Now when a manager opens the record. It will open on edit form mode. so manager can click the Approve from a dropdown which will be visible only for manager on edit form.
But when the manager opens, the 1st data field that collects the user information executes and replace the employee name with the manager name on the same field.
Thats wrong. So I wants to restrict the formula that it will work only on New form at the time user applies for the leave and
It leave the name as it is when a manager opens the same record on edit mode to approve the request.
If(FormMode=FormMode.New,User().FullName,?????????)
Please help me with a solution.

Report
All responses (
Answers (