Hello,
I am still a novice on PowerApps and I am stuck on a dropdown list that does not reset when I want to switch the form to add mode...
I have a button that allows me to switch to another screen in add mode with the following formula:
Set(varEditMode;"AddNew");; Navigate(Client_Details;ScreenTransition.Cover;{})
When I want to view the data, I have the following formula on the OnSelect of my Gallery:
Set(varEditMode; "ReadOnly");; Navigate(Client_Details;ScreenTransition.Cover)
My form's data source is:
LookUp(tabClients;cl_ID=Clients_Gallery.Selected.cl_ID)
My dropdown list has the source: tabEntites
The displayed value: en_Libelle
The Default property is set to:
LookUp(tabEntites;en_ID=ThisItem.cl_ID_Entite;en_Libelle)
When I switch to add mode, ThisItem.cl_ID_Entite is indeed empty, but the text displayed in my dropdown list remains stuck on the last displayed value.
Do you have any ideas to solve my issue, please?
Thank you in advance.