Hello,
I have a PowerApps screen that contains a gallery connected to my SharePoint data source, inside this gallery I have a button that opens a PopUp in the same screen. In this Popup, I have a PenInput box and a submit button. When the users add his signature and if it was the first time I am storing his signature to an SP list, then if he came back to sign a new item I am populating the image of the user that is stored in this List.
onSelect property of the submit button I have a function that sends an email for the user that includes the signature image.
What I want to achieve is the following:
I have assigned for the Visible property of this button, if the PopUp is true and if the EmptySign <> CurrentSignature (Till here everything is working). Now this condition was based if the user was the first time adding his signature. Now after the signature is stored and the image is populated I want to display the button back again so he will be able to submit his signature for new items. So I want to add for the same condition another one that checks if the image IsNotBlank to display the button.
More details about the variables:
The button before opening the Popup here is the initialized variables:
Set(SelectedReport,ThisItem);UpdateContext({PopUp:true});
The EmptySignature variables are initialized onvisible of the screen and which is the following with Timer variables:
Set(EmptySignature, Substitute(JSON(PenInput1.Image, JSONFormat.IncludeBinaryData), """", ""));
Set(IsStart, false);Set(IsStart, true);
The CurrentSignature variable is initialized onTimerEnd of the Timer Control:
Set(CurrentSignature, Substitute(JSON(PenInput1.Image, JSONFormat.IncludeBinaryData), """", ""))
Start: IsStart
Duration: 2000
Repeat: true
Visible of the submit button:
If(
PopUp = true && EmptySignature <> CurrentSignature,
true,
false
)
Unfortunately, the button is not displaying after the image is populated. To summarize, so if the user was the first time adding his signature the first condition should be met and display the button to submit, or if the image is already populated in the popup which means the signature already stored then the button should be also visible. Both conditions the Popup should be true.
Please have a look at the below GIF which shows a new item that the user should be able to submit his signature and the button is not displaying:

Can please someone explains in detail and provide an example?
Any help will be greatly appreciated.
Thank you!