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!
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
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
User | Count |
---|---|
251 | |
126 | |
107 | |
50 | |
49 |