
I have 3 controls in my power app 1.lable control 2.Add picture control to uplaod attachement 3. Remove button
labelcontrol addpicturecontrol removebutton
If i select any file by clicking add picture control and select lablecontrol name will be the file name , If i click the remove button i need make lable control text as empty and addpicture cotnrol media also empty how can we achive in canvas app
Hello,
Here is how you can do This.
1)
On the OnChange function of AddMediaButton1 add the following code. Set(img,AddMediaButton1.FileName)
2) On your label set the Default text to img
3) On your button OnSelect use this formula Set(img,""); Reset(AddMediaButton1);
Just an FYI: FileName might return inconsistent names on Android or Iphones. There is an Idea to improve this feature: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Add-picture-name/idi-p/184699
Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.
Thanks,
Rahber