cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
apirez
Helper III
Helper III

URGENT HELP NEEDED! Clearing name from people picker field using card Update, clearing multiple fields

Hi All,

I was looking for a way to clear the resource name in the people picker below. I added the formula 

If(IsBlank(DataCardValue2.Text),Blank(),DataCardValue2) to the Update of the Resource data card. Problem is when I submit the form, the manager field is also being cleared blank. I need a solution ASAP as this is a critical issue for our org. I really appreciate your help!2022-08-01_10-57-21.png

9 REPLIES 9
phipps0218
Super User
Super User

What is your item property of the form? If you do not want it to clear when form is submitted then you need to make sure the items property of the form is set to the record.

 

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218

@phipps0218 this is the item property of the form:

LookUp(Resources,'Resource ID' = First(PowerBIIntegration.Data).'Resource ID')

 

This app is integrated into a Power BI dashboard.

I appreciate your help. Thanks! 

Ok perfect, after form submission do you navigate off the page or stay on the same page? What I suggest doing is on form success is add a refresh to collect the latest data and set form to edit and this should keep the manager field.

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
Twitter: https://twitter.com/phipps0218

@phipps0218 this is my onsuccess:

 

Notify("Saved",NotificationType.Success,700); PowerBIIntegration.Refresh(); EditForm(Form1)

 

I think this is what you are saying but it's still clearing out the manager field as well...

Set a variable to get lastsubmit on the on success then set the default field for the manager to this. That will work for you. I just tested this. 

@phipps0218 forgive my ignorance how do I do what you indicated? Thanks so much its very appreciated 

Set(variableName, FormName.LastSubmit);

 

Default property on manager field is then:

variableName.ManagerFieldName

@phipps0218 where do I set the variable? Thank  you so much!

so on the Onstart of the app i set: Set(Manager,Form1.LastSubmit)

 

Then on the Default of the Approver (Manager) field i set Manager.Approver

 

but Im getting an error

2022-08-01_12-48-06.png

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

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