Hi. I built a form on Sharepoint Online, then customized it in powerapps. I included two buttons to auto-populate a multiple line of text field with Current user, date and time. There seems to be an issue with the buttons. Below is the Process on how the form works and the problem.
Step 1: User Fills in the form to get approval and saves it. (User will indicate who is the approver for that record in people picker group, there is also a approver 2 if a condition is met)
Step 2: The approver will go in and verify the details and click the "Approver Button" and saves the form. That button will capture the approvers Name, Date and current time in a multiple line of text field. (Formula for Multiple line of text input box If(Button1.Pressed=true,varsig, User().FullName) & If(Button1.Pressed,varsig, ", ") & If(Button1.Pressed,varsig, Now()) )
If approval 2 is need then, Approver 2 will also do the same thing and save the form, same formula but in a different multiple line of text field.
Approver 1 clicks on the button, Name, Date and time is captured
PROBLEM: When approver 2 clicks/view the form, the field will capture the logged in user name and update it.
Solution needed: Each button to caputre details and locks it. Other users should not be able to change it or it should not auto-populate with other logged in users.