cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Applicable88
Helper II
Helper II

Custom Sharepoint Form /if isblank then User().Email, if already E-mail then no action

Hello,

 

I'm using a customized sharepoint form via PowerApps. Normally users making inputs via a PowerApp. There is a grayed out field

where I automtatically pulling the users email in a input field: User().Email 

 

Now I also have a customized form in Sharepoint where users can manage their old items or correcting mistakes. Since every person in the department can correct the items of others, using the same User().Email function would overwrite the actuall creator of that entry.

So I want something like : If (!isblank(DataCardValue1.Text); User().Email)

Which means: When I'm editing a existing record of a collegue don't overwrite email, in case I'm making a new item via customized form then automatically input my email.

 

Hope somebody has an solution to this. 

Best. 

1 ACCEPTED SOLUTION

Accepted Solutions

Actually in my case its the DataCardValue which is working, but the Parent.Default not. 

I wrote wrong when I added .Text or .Value at the end. 

Still thank you very much to lead me to the right result @iAm_ManCat 

View solution in original post

2 REPLIES 2
iAm_ManCat
Super User
Super User

Hi, yes you want to reference the Parent.Default for that item, not the value of the textbox:

// if Parent.Default (the edited value) is blank then user UserEmail, otherwise use the existing value
If (IsBlank(Parent.Default); User().Email; Parent.Default)
@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Actually in my case its the DataCardValue which is working, but the Parent.Default not. 

I wrote wrong when I added .Text or .Value at the end. 

Still thank you very much to lead me to the right result @iAm_ManCat 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,242)