web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Resetting the label co...
Power Apps
Unanswered

Resetting the label control based on button onselect

(0) ShareShare
ReportReport
Posted on by 42

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

Categories:
I have the same question (0)
  • Rahber Profile Picture
    1,935 on at

    Hello,

     

    Here is how you can do This.

     

    1) Image.PNG

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard