Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Inserting Digital signature into Listbox

Community Beginner ,
Jun 24, 2020 Jun 24, 2020

Hello All,

what I'm trying to achive is to insert a digitial signature box/boxes into a listbox. The content is that a person would select a few groups that then need and then the javascript would then insert the required amount of digital signature boxs 

 

	AccessList.insertItemAt(cChoice, "s", 0);
	AuthList.insertItemAt("Director____________________________________" , "s", 0);
	AuthList.insertItemAt("Sign" , "s", 0);

	this.addField(cChoice, "signature");

 

the top 3 line works fine but i cant get the last line to work

i need some help please 

TOPICS
Acrobat SDK and JavaScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Jun 25, 2020 Jun 25, 2020

You can't add a field to a listbox.

Translate
Community Expert , Jun 25, 2020 Jun 25, 2020

As mentioned, that is not possible. What you can do, though, is create a separate Digital Signature field and then show it when the Sign option is selected (and hide it when it's not).

Translate
Community Expert ,
Jun 25, 2020 Jun 25, 2020

You can't add a field to a listbox.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2020 Jun 25, 2020

As mentioned, that is not possible. What you can do, though, is create a separate Digital Signature field and then show it when the Sign option is selected (and hide it when it's not).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 25, 2020 Jun 25, 2020

is there a possiable way to dynamicly add them to the page as required, rather then just hiding them and unhiding them

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2020 Jun 25, 2020

Assuming the file will be used in Reader, no. Also, the effect will be exactly the same, only hiding/showing them is much easier than creating/deleting them. PDF files are not dynamic in this way. They don't "re-flow" when you add/remove fields.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 25, 2020 Jun 25, 2020

that makes it difficult as i have multiple different areas they can be selected from a drop down box with each area requiring different authorisation. my plan was to the the signature populate with the required person job title and then the signature field beside. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 25, 2020 Jun 25, 2020
LATEST

You can still do that... The signatures can be overlapping until you decide to show them.

And you can use a text field to fill in the person's title, if you wish.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines