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

Required Signature Field, but do not need to save image

Hello fellow Powerapps users Smiley Happy

 

I am currently creating a form, whereby I have 2 signature fields that are not linked to my sharepoint list.

 

I am trying to format the 'save form' button to perform the following functions

  • Only submit form if there are scribbles within both signature fields
  • Change the 'signed' column in SP list to "yes" or "true".. 

I do not need the signature to be saved to SP

 

Is this possible?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

Yes, it is possible.

Assuming you use the default Submit button Icon for Form submit, then under the DisplayMode of the Submit icon, input the formula below:

If(IsBlank(PenInput1.RecognizedText)||IsBlank(PenInput2.RecognizedText),
DisplayMode.Disabled,
DisplayMode.Edit)

Doing it in this way would make the icon only available when the PenInputs both have user inputs.

You could also change the DisabledColor property to as a reminder to the user:

Color.Gray

For saving the Yes value to the 'Signed' column (assum it is a text field), we could do it in the following ways:

1. Configure the Form OnSuccess property with a patch () function:

Patch(SharePointList, Editform.LastSubmit, {Signed:"Yes"})

2. Use the Signed Column DataCard, change the Update property of this datacard to:

If(IsBlank(PenInput1.RecognizedText)||IsBlank(PenInput2.RecognizedText),
    "No",
    "Yes")

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
v-micsh-msft
Community Support
Community Support

Yes, it is possible.

Assuming you use the default Submit button Icon for Form submit, then under the DisplayMode of the Submit icon, input the formula below:

If(IsBlank(PenInput1.RecognizedText)||IsBlank(PenInput2.RecognizedText),
DisplayMode.Disabled,
DisplayMode.Edit)

Doing it in this way would make the icon only available when the PenInputs both have user inputs.

You could also change the DisabledColor property to as a reminder to the user:

Color.Gray

For saving the Yes value to the 'Signed' column (assum it is a text field), we could do it in the following ways:

1. Configure the Form OnSuccess property with a patch () function:

Patch(SharePointList, Editform.LastSubmit, {Signed:"Yes"})

2. Use the Signed Column DataCard, change the Update property of this datacard to:

If(IsBlank(PenInput1.RecognizedText)||IsBlank(PenInput2.RecognizedText),
    "No",
    "Yes")

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Michael,

 

Thank you so much for your detailed response!

Hopefully this will also be able to help someone else out there.

 

Have a lovely day

Anonymous
Not applicable

Hi Michael,

 

Following this, I am having trouble with the 

If(IsBlank(PenInput1.RecognizedText)||IsBlank(PenInput2.RecognizedText),
DisplayMode.Disabled,
DisplayMode.Edit)

It seems that despite whether or not there is pen input, the button remains activated.

 

However, if I replace 'RecognizedText' with 'Strokes', the button becomes disabled regardless of whether or not there are strokes within the doodle fields. 

 

I was wondering what the property might actually be?

If that makes sense...

 

Thank you!

Hi,

 

Strokes property is much better.

Which shows the storage Blob for the strokes inputted in the following format:

appres://blobmanager/a0f80d35a8944e36829af17488415f2b/52

App Resource : Location.

And this property would be blank if the strokes was cleared.

 

The recognized text should be combined with some automatic identification service, which shows the likely character to the strokes inputted, while not all platforms supported this property, so it may not work soemtimes.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Michael,

 

Thank you for your reply, but sorry you have lost me there.


Which shows the storage Blob for the strokes inputted in the following format:

appres://blobmanager/a0f80d35a8944e36829af17488415f2b/52

App Resource : Location.

And this property would be blank if the strokes was cleared.

 


Does this mean that I should do as follow?

 

If(IsBlank(PenInput1.Strokes)||IsBlank(PenInput2.Strokes),
DisplayMode.Disabled,

DisplayMode.Edit)

 

I have tried doing this, but the button remains disabled regardless of whether a stroke has been inputted.

Hmm.. surely there's a solution out there!

 

Thank you again,

 

Kind regards

The two PenInputs are both needed to be filled with strokes, in order to have the button enabled.

Only with one of them inputted, it will stay disabled.

If this is not your requirements, then please let me know.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Michael,

 

Thank you for your prompt response - correct that is what I am after.

 

Please see screenshots below:

First screenshot: String of text has been placed in the DisplayMode field for the button

 

Second screenshot: Button is still disabled even though there are scribbles

 

Am I missing something?

 

1.PNG

2.PNG

This is the result from my side:

37.PNG

 

Take a try t oput the formula into a Label control, see if the text would change based on the condition.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Michael,

 

Really appreciate your help!

Unfortunately it didn't work for me.. please see below:

I just realised that staffsign.Strokes is cut off, but the entire text is there

 

If(IsBlank(LeaderSign.Strokes)||IsBlank(StaffSign.Strokes),
Disabled,
Edit)

 

3.PNG

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,533)