Hello fellow Powerapps users
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
I do not need the signature to be saved to SP
Is this possible?
Thanks in advance!
Solved! Go to Solution.
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
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
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
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
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/52App 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
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?
This is the result from my side:
Take a try t oput the formula into a Label control, see if the text would change based on the condition.
Regards,
Michael
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)
User | Count |
---|---|
252 | |
126 | |
104 | |
50 | |
50 |