Hi,
I'm trying to create a power app in which i have a questionnaire, with possibility to add a picture if a specific value is selected.
I'm Using a Form, and due to Lay-out limitations i can not have the capture picture together in the "Edit Form" Control.
So in case a picture needs to be taken, the current form will be submitted. and in the next screen the picture will be added. After this the user will be returned to the first screen.
in order to reduce the amount of clicks, i use a slicer (in below example called Req02) to enter the values. with a minimum value of 1, and a maximum value of 5. I also would like to change the Fill color of the DataCard in case the question was answered in a previous screen. (this to make it clear to the user which questions he already has answered.)

For this i use in the "Fill" section of the datacard below function
If(ReqVal02=Blank(),
RGBA(0,0,0,0),
RGBA(226, 250, 230, 0.7))
Via the "OnChange" i would fill in the Variable
Set(ReqVal02,Req02.Value)
But because the use of the Slicer: at the moment it will submit the form (to take the picture), it will select automatically the lowest Value, and thus it will always change the 'blank()' Value of the field even i the user didn't change them. So All questions will be marked as green (Value 1).
I tried to fix this by using the "OnChange" property of the slicer: i was hoping to block this off, So it would only register "manual" changes to the slicer:
"OnSelect":
UpdateContext({OnSel02: 1})
"OnChange"
If(OnSel02=1,
Set(ReqVal02,Req02.Value);UpdateContext({OnSel02: 0}),
Set(ReqVal02,Blank()))
"Default"
If(ReqVal02=Blank(),1,ReqVal02)
But it seems the "On Change" is triggered before the "OnSelect", so with this setup it is not possible to change the value of the slicer at all.
I have the feeling i'm over complicating it, though i don't see much alternatives now (using a dropdown would make it possible, though the user experience would not be the same).
Any advice you can give me?