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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,758)