Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

delete or reset image in addmedia button

(0) ShareShare
ReportReport
Posted on by 395

Hi, i have an offline/online app that saves to a collection, then uploads to sharepoint when online. I have 4x addmedia for the user to add pictures. On another screen, i have the another 4x addmedia, this is linked to a gallery to enable the user to change the image if required. I need to be able to reset the addmedia that is linked to the gallery. I have tried adding a button with the onselect set to UpdateContext({ClearPic:true});UpdateContext({ClearPic:false}), then in addmedia reset set to ClearPic, no error, just doesnt respond. (1st and 2nd image is the edit screen). My collection on the first addmedia screen is Collect(KBLCollection,{Image1:Substitute(JSON(UploadedImage1.Image,IncludeBinaryData),"""","")});SaveData(KBLCollection,"KBLCollectkeep"

Matt383_1-1634854896028.png

 

Matt383_0-1634854382602.png

any ideas would be much appreciated.

Categories:

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard