You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/javascript-es6/form-designer/Create-edit-Style-del-formFields/edit-formfields.md
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/javascript-es6/form-designer/Create-edit-Style-del-formFields/style-formfields.md
@@ -34,13 +34,6 @@ Use the Properties panel to adjust the value, font family/size/style, text color
34
34
35
35
Use `updateFormField` to modify a textbox’s appearance and behavior on a button click. The example below finds the field by name (or falls back to the first field) and updates value, typography, colors, alignment, and border thickness.
36
36
37
-
- value: Sets the displayed text.
38
-
- fontFamily, fontSize, fontStyle: Controls text typography.
39
-
- color: Text color.
40
-
- borderColor, backgroundColor: Field border and fill colors.
41
-
- alignment: Horizontal text alignment (Left, Center, Right).
The PDF Viewer exposes a default settings APIs for form fields. Use the [TextFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#textfieldsettings) to preconfigure TextBox properties applied when adding fields from the Form Designer toolbar.
82
77
83
78
```ts
84
79
// Apply as defaults for Textbox added from toolbar
@@ -114,8 +109,19 @@ Use the Properties panel to configure the tooltip, font family and size, masked
The PDF Viewer exposes default settings APIs for form fields. Use the [PasswordFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#passwordfieldsettings) to preconfigure Password properties applied when adding fields from the Form Designer toolbar.
134
142
135
143
```ts
136
144
pdfviewer.passwordFieldSettings= {
@@ -164,19 +172,32 @@ Use the Properties panel to toggle the checked state and customize border and ba
The PDF Viewer exposes default settings APIs for form fields. Use the [CheckBoxFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#checkboxfieldsettings) to preconfigure CheckBox properties applied when adding fields from the Form Designer toolbar.
180
201
181
202
```ts
182
203
pdfviewer.checkBoxFieldSettings= {
@@ -204,14 +225,28 @@ Use the Properties panel to set the selected state, border and background colors
The PDF Viewer exposes default settings APIs for form fields. Use the [RadioButtonFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#radiobuttonfieldsettings) to preconfigure RadioButton properties applied when adding fields from the Form Designer toolbar.
215
250
216
251
```ts
217
252
pdfviewer.radioButtonFieldSettings= {
@@ -240,8 +275,19 @@ Use the Properties panel to add or remove items, set the selected value, and adj
The PDF Viewer exposes default settings APIs for form fields. Use the [listBoxFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#listboxfieldsettings) to preconfigure ListBox properties applied when adding fields from the Form Designer toolbar.
262
310
263
311
```ts
264
312
const customOptions = [
@@ -298,8 +346,19 @@ Use the Properties panel to add or remove items, set the default value, and adju
The PDF Viewer exposes default settings APIs for form fields. DropDown uses [DropDownFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#DropDownfieldsettings) to preconfigure properties applied when adding fields from the Form Designer toolbar.
320
381
321
382
```ts
322
383
const ddOptions = [
@@ -326,7 +387,7 @@ const ddOptions = [
326
387
];
327
388
328
389
// DropDown uses listBoxFieldSettings for defaults
329
-
pdfviewer.listBoxFieldSettings= {
390
+
pdfviewer.DropdownFieldSettings= {
330
391
name: 'DropDown',
331
392
isReadOnly: false,
332
393
visibility: 'visible',
@@ -357,20 +418,33 @@ Use the Properties panel to configure the tooltip, indicator text, dialog displa
357
418
### Style Signature field programmatically
358
419
359
420
```ts
360
-
const sig =pdfviewer.formFieldCollections.find(f=>f.name==='Sign');
### Default Signature field settings (toolbar additions)
445
+
### Default Signature field settings
446
+
447
+
The PDF Viewer exposes default settings APIs for form fields. Use the [SignatureFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#signaturefieldsettings) to preconfigure Signature properties applied when adding fields from the Form Designer toolbar.
374
448
375
449
```ts
376
450
pdfviewer.signatureFieldSettings= {
@@ -407,20 +481,33 @@ Use the Properties panel to configure the tooltip, indicator text, dialog displa
### Default Initial field settings (toolbar additions)
508
+
### Default Initial field settings
509
+
510
+
The PDF Viewer exposes default settings APIs for form fields. Use the [InitialFieldSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/index-default#initialfieldsettings) to preconfigure Initial properties applied when adding fields from the Form Designer toolbar.
0 commit comments