Adobe 22002486 Digital Signature User Guide - Page 75

Adding Custom Signing Reasons

Page 75 highlights

Acrobat 9 Family of Products Security Feature User Guide Controlling Signing with Seed Values Adding Custom Signing Reasons 75 Authors in such environments can specify which signature appearance is required for any given signature field. As with other seed values, a flag bit is used to indicate whether or not the field is a recommendation or mandatory. A signature field is correlated with a specified name which is then used to match a given appearance. The string name must exactly match the name of a signature appearance for it to be selected. Example 5.3 Seed value: signatureAppearance f = this.getField(); f.signatureSetSeedValue({appearanceFilter:"Example Appearance Name"}); //Set the setting as required f.signatureSetSeedValue({appearanceFilter:"Example Appearance Name", flags:0x100}); 5.5 Adding Custom Signing Reasons Acrobat predefines several common signing reasons such as "I am approving this document." However, the author can specify custom reasons and make those reasons required or optional. When custom reasons are marked as required, users cannot enter any new reasons as the field becomes read-only. When those reasons are flagged as optional, signers can choose one of the provided reasons or create a new one by typing in the Reason field. Specifying a signing reason will remove all of the default reasons from the reason drop-down list. User interface impact: Note that end users have a user interface preferences that allows them control whether or not the reason's field appears. The preference interacts with the reasons flag as shown in Table 9, and the logic is as follows:  The document author has control over whether the UI appears and the required flag overrides user-specified settings.  When a flag makes the field optional, end users can enter custom reasons. To specify custom signing reasons: 1. Create a signature field with an intuitive name and tooltip. 2. Create the JavaScript that gets the field object and uses the seed value method (Example 5.4). 3. Add the reasons. The reason list is an array in the format of ["one", "two", "three"]. 4. Enter a flag value to indicate whether the value is required or not.  If a reason is not required, signers can add their own custom reason while signing.  If the predefined reasons are required, signers are prevented from saving a document with their own reason (Figure 59). 5. Run the JavaScript, save the document, and test the field. Table 9 Reason field behavior # of Reasons UI Pref Flag Reason Behavior 0 (empty array) off Required Reason field does not appear in UI.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189

Acrobat 9 Family of Products
Controlling Signing with Seed Values
Security Feature User Guide
Adding Custom Signing Reasons
75
Authors in such environments can specify which signature appearance is required for any given signature
field. As with other seed values, a flag bit is used to indicate whether or not the field is a recommendation
or mandatory. A signature field is correlated with a specified name which is then used to match a given
appearance. The string name must exactly match the name of a signature appearance for it to be selected.
Example 5.3
Seed value: signatureAppearance
f = this.getField(<Field Name>);
f.signatureSetSeedValue({appearanceFilter:"Example Appearance Name"});
//Set the setting as required
f.signatureSetSeedValue({appearanceFilter:"Example Appearance Name", flags:0x100});
5.5
Adding Custom Signing Reasons
Acrobat predefines several common signing reasons such as “I am approving this document.” However,
the author can specify custom reasons and make those reasons required or optional. When custom
reasons are marked as required, users cannot enter any new reasons as the field becomes read-only. When
those reasons are flagged as optional, signers can choose one of the provided reasons or create a new one
by typing in the
Reason
field. Specifying a signing reason will remove all of the default reasons from the
reason drop-down list.
User interface impact
: Note that end users have a user interface preferences that allows them control
whether or not the reason’s field appears. The preference interacts with the reasons flag as shown in
Table
9
, and the logic is as follows:
The document author has control over whether the UI appears and the
required
flag overrides
user-specified settings.
When a flag makes the field
optional
, end users can enter custom reasons.
To specify custom signing reasons:
1.
Create a signature field with an intuitive name and tooltip.
2.
Create the JavaScript that gets the field object and uses the seed value method (
Example 5.4
).
3.
Add the reasons. The reason list is an array in the format of [“one”, “two”, “three”].
4.
Enter a flag value to indicate whether the value is required or not.
If a reason is not required, signers can add their own custom reason while signing.
If the predefined reasons are required, signers are prevented from saving a document with their
own reason (
Figure 59
).
5.
Run the JavaScript, save the document, and test the field.
Table 9
Reason field behavior
# of Reasons
UI Pref
Flag
Reason Behavior
0 (empty array)
off
Required
Reason field does not appear in UI.