1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Disable Signature Pad

Discussion in 'Community' started by teoyh, Jul 5, 2019.

  1. teoyh

    teoyh Member

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

    thank you in advance , :)
  2. teoyh

    teoyh Member

    Level: Community
    Friendly Bump :) TGIF
  3. lousyfool

    lousyfool Active Member

    Level: Community
    "... once it is signed ..."
    How do you determine when that is the case?
  4. teoyh

    teoyh Member

    Level: Community
    Once it is sign there is a field which will be updated as Issued from 0 to 1
  5. lousyfool

    lousyfool Active Member

    Level: Community
    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.
    - 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... ;)
  6. teoyh

    teoyh Member

    Level: Community
    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
  7. lousyfool

    lousyfool Active Member

    Level: Community
    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.
  8. teoyh

    teoyh Member

    Level: Community
    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
  9. lousyfool

    lousyfool Active Member

    Level: Community
    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.


    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.

Share This Page