0
Interactive PDF - Display value from another form field?
New Here
,
/t5/acrobat-discussions/interactive-pdf-display-value-from-another-form-field/td-p/13561561
Feb 07, 2023
Feb 07, 2023
Copy link to clipboard
Copied
I have an interactive pdf with a list selection box; and because a user can select multiple selections;
is there a way to display the selections in another box or frame?
a user may select many of the values, i'd like to just be able to show what has already been selected
maybe a simple javascript to display the value?
TOPICS
How to
,
JavaScript
,
PDF forms
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-discussions/interactive-pdf-display-value-from-another-form-field/m-p/13561700#M398180
Feb 07, 2023
Feb 07, 2023
Copy link to clipboard
Copied
You can show selections in text field.
If you want to show each selection in a new line, set text field to 'Multiline' and use this as custom calculation script of text field (change "List Box1" to your actual list field name):
var f = this.getField("List Box1").value;
if (typeof f == "object")
event.value = f.join("\n");
else
event.value = f;
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

