How do I reset the Add Picture control. First time it opens, it displays the Sample Image. I would like it to revert to this each time the screen is loaded.
Solved! Go to Solution.
I suggest you try this:
In the Onvisible of the screen create a variable:
UpdateContext({ShowSample:true} )
Then in the image;
If(ShowSample,SampleImage,Cemera1.Photo)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
I suggest you try this:
In the Onvisible of the screen create a variable:
UpdateContext({ShowSample:true} )
Then in the image;
If(ShowSample,SampleImage,Cemera1.Photo)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Am checking if the issue is resolved?
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
It depends on your situation. In the case above anytime he navigate to another screen the variable is set to false automatically since it UpdateContext.
However if on the same screen you want to Set it to false, you can insert a Button and Onselect;
UpdateContext({ShowSample:false} )
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @eka24 ,
I was having problems using Reset(AddMediaButton) but now I can use it and it works fine.
Thanks,
Fernando
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
199 | |
68 | |
47 | |
36 | |
25 |
User | Count |
---|---|
239 | |
109 | |
89 | |
87 | |
66 |