cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kareanawilson
Regular Visitor

Images Resetting Other Images

I have a form with mulitple photo fields. On field 1 there is button1 that sets camera1 to be visible and a picture can be taken, then photo1 can be viewed in the data card. On field 2 there is button2 that sets camera2 to be visible and takes a picture, image2, which can then be viewed in the data card. Now when I take photo2 it clears photo1 even though they are linked to different cameras. This is causing my sharepoint list to only upload photo 2 and noting gets updated to photo1 when i submit my form. Is there a solution to keeping photo 1 there when I add photo 2 without use of flows or collections?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
kareanawilson
Regular Visitor

Solution:

- In Datacard1 add button1 where onselect = navigate(camerascreen); Set(camera1visible, true) //visible variable declared

- set camera1 onselect = ClearCollect(Camera1photos, {Photo: Camera1.Photo}) //just made a collection

- add gallery within your data card where data source = camera1photos collection

- data card update = First(Camera1photos).Photo 

- sumbit form button set on select = clear(camera1photos)

 

repeat for camera 2,3,4 etc

View solution in original post

2 REPLIES 2
kareanawilson
Regular Visitor

Update: I have realized the setvisible variable im updating is causing the issue. When I set camera 2  visible to true it sets camera1 visible to false. So when camera 1 is not visible, the photo disappears, but I cant have both cameras on at the same time. So need to work around this somehow...

kareanawilson
Regular Visitor

Solution:

- In Datacard1 add button1 where onselect = navigate(camerascreen); Set(camera1visible, true) //visible variable declared

- set camera1 onselect = ClearCollect(Camera1photos, {Photo: Camera1.Photo}) //just made a collection

- add gallery within your data card where data source = camera1photos collection

- data card update = First(Camera1photos).Photo 

- sumbit form button set on select = clear(camera1photos)

 

repeat for camera 2,3,4 etc

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (36,686)