Disable Signature Pad

teoyh

Member
Hi wonder anyone can advice me how can i disable the signature pad once it is signed

thank you in advance , :)
 
I do not mean what's to happen after it's been signed.
I mean, how do you know when the user has finished his signature. You'll need to define an event as "user has finished signing" and, for obvious reasons, it will always be difficult or even impossible to "auto-detect" this.
Imagine:
- Some signatures are done quickly, others take longer.
- Some signatures are done in one go, others consist of multiple parts.
- Some users manage to get it done at once, others need multiple attempts.
So, you'll never know for sure when a signature is finished... unless you provide a button for the user to click when finished - but you have that already as "submit" button for the form... ;)
 
I do not mean what's to happen after it's been signed.
I mean, how do you know when the user has finished his signature. You'll need to define an event as "user has finished signing" and, for obvious reasons, it will always be difficult or even impossible to "auto-detect" this.
Imagine:
- Some signatures are done quickly, others take longer.
- Some signatures are done in one go, others consist of multiple parts.
- Some users manage to get it done at once, others need multiple attempts.
So, you'll never know for sure when a signature is finished... unless you provide a button for the user to click when finished - but you have that already as "submit" button for the form... ;)
Sorry may be i did not phrase my question clearly....
I mean after the user signed the signature and click the submit button. When the user return back to the record again by clicking edit, when that happen i wish to disable the signature field
 
Aaah ok... well, that's simple:
Edit the element, and under Access -> Form (edit) select an access level which the user is not part of.

If you want that no one is able to edit the element, create a new Joomla access level (name it e.g. "No One") and make sure that no user group is selected. Then pick this as access level for "Form (edit)" in the element.
 
Thank you for your reply but it will not work that way

The record is created by the system.

At the point the user sign the signature it is in edit mode.

Once the record is signed, the system will update the record where there is a column call issued and it will change from 0 to 1

In the javascript file , i check the value of the issued field if it is 1 then i want to disable the signature but now i can;t so i can only hide it

I am looking for a javascript to disable the signature pad
 
Hmm, maybe now we finally know what it's really about...
Next time please provide all facts, conditions and intended workflow and formulate your question in the first post so it's all clear from the very beginning. Thank you.

Anyway...

According to Wiki -> README.md in the plugin -> Github, you'll find the documentation at https://github.com/thread-pond/signature-pad/blob/master/documentation.md to give you guidance if you want to develop and use your own custom code for it.

However, if I were you (and based on how you described the goal in the end), I'd probably create a custom template for this form and, solely in PHP, check your "issued field" and, depending on its value, either display the digsig pad or just the signature as image.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top