Support Article

Signature not capturing when default accept actions disabled

SA-37625

Summary



When disabling the default accept actions on a signature control, the signature is lost when completing the assignment.


Error Messages



Not Applicable


Steps to Reproduce



Disable default accept actions on Signature control.


Root Cause



If disabling the default actions, developer will need to configure an equivalent action on another element.

Resolution



Refer to the following PDN link:

https://pdn.pega.com/sites/pdn.pega.com/files/help_v72/procomhelpmain.htm#rule-/rulehtml-/common/commonlayoutsignaturecapturecustomize.htm

Following are the details.

USING CUSTOM ACCEPT/CLEAR BUTTONS

To add your own custom icons for the Accept and Clear actions in the Signature Capture control, leverage a click action with a JavaScript event. Follow the instructions presented below.

  1. Make sure the Hide default Accept/Clear actions option is selected in the options for the control.
  2. Add two icons, for instance, within a section containing the Signature Capture control - each representing the Accept and Clear actions.
  3. Open the Cell Properties dialog for each icon and add an action of the Run Script type.
  4. Enter the following JavaScript function name in double quotes, for the action representing the Accept icon:
    • pega.ui.signature.acceptSignature
  5. Enter the following JavaScript function name in double quotes, for the action representing the Clear icon:
    • pega.ui.signature.clearSignature
  6. Make sure that for each function two parameters are defined: signature name and category - to uniquely identify a Signature Capture control on a screen.

Published May 8, 2017 - Updated May 19, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.