cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Disable button if pen input/gallery blank/empty

Hi all,

 

I am making an app which uses a pen input to gather signatures. I have a button which takes the user to the next screen/form on successfully filling in all the required fields. How do I disable this button whenever the pen input is blank? I have tried passing the image from the pen input to an Image control and Gallery and, based on that, checking if they contain an image, but no luck. I have tried this post by Shane Young but, again, haven't had any luck with it. 

 

Any suggestions or ideas would be much appreciated!

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@Anonymous 

What you need to end up doing is an image comparison to a blank image.

So, consider putting in your OnVisible action of your screen a formula such as this:

   Set(blankInputImage, PenInput1.Image)

Then, for your button, set the DisplayMode property to the following formula:

   If(PenInput1.Image = blankInputImage, Disabled, Edit)

 

Give that a try and see if you have better luck.

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

1 REPLY 1
RandyHayes
Super User III
Super User III

@Anonymous 

What you need to end up doing is an image comparison to a blank image.

So, consider putting in your OnVisible action of your screen a formula such as this:

   Set(blankInputImage, PenInput1.Image)

Then, for your button, set the DisplayMode property to the following formula:

   If(PenInput1.Image = blankInputImage, Disabled, Edit)

 

Give that a try and see if you have better luck.

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (30,801)