Hi all,
My question is almost identical to the one on this thread from a few years ago, right down to the part that I can't find a solution for within the thread: https://powerusers.microsoft.com/t5/Building-Power-Apps/Auto-Populating-a-text-box-with-Office-365-d...
Essentially, I have a form that auto-displays a record. When a specific toggle is switched to yes (which indicates that a specific document has been uploaded), I want PowerApps to capture the user's name and date, then lock them in. I tried the solutions offered on the link above (changing the Default of the user's name textbox to be 'If(DataCardValue76.Value=true,User().FullName)'), which would work great except it keeps changing the name in the box every time someone does back to edit or change another part of that record, even if they don't touch that toggle. I'm sure there's an easy solution to this, but I can't figure out what it is! Any advice is appreciated!
Solved! Go to Solution.
You need to account for the exiting record value.
Coalesce(Parent.Default, If(DataCardValue76.Value, User().FullName)))
On the default of the textbox will give you what you are looking for.
I hope this is helpful for you.
You need to account for the exiting record value.
Coalesce(Parent.Default, If(DataCardValue76.Value, User().FullName)))
On the default of the textbox will give you what you are looking for.
I hope this is helpful for you.
That worked perfectly, thank you so much!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
53 | |
41 | |
37 | |
31 |
User | Count |
---|---|
246 | |
75 | |
71 | |
69 | |
65 |