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

Dropbox on Checkboxes

Explorer ,
Feb 06, 2020 Feb 06, 2020

Hello,

 

I have a dropbox called Sex, that has options for Male and Female.

on a different page, I have two checkboxes called CB_Sex, with different export value Male Female.

 

I need a script so that when dropbox selects male, it checks the checkbox for male and so on...

 

Also, I need a way to remove the checkboxes from the dropdown list. I can add another item to the checkbox.. say a single space, so that when that's selected, it would result in clearing any/all checkboxes.

 

Please help!

Thanks

 

TOPICS
Create PDFs , Edit and convert PDFs , How to , PDF forms
1.4K
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
1 ACCEPTED SOLUTION
Explorer ,
Feb 16, 2020 Feb 16, 2020

Figured it out...  wasted hours in the process...

this.getField("Applicant Sex").value = event.value;

this.getField("Applicant Gender").value = event.value;

View solution in original post

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 ,
Feb 06, 2020 Feb 06, 2020

The strategy here is the same as your other post. Make the exports in the dropdown match the exports on checkbox, Make the export for the blank entry on the dropdown "Off". Then use a keystroke script to copy the dropdown to the checkbox. Look at the articles and the examples for sample scripts.

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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
Explorer ,
Feb 16, 2020 Feb 16, 2020

Figured it out...  wasted hours in the process...

this.getField("Applicant Sex").value = event.value;

this.getField("Applicant Gender").value = event.value;

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 ,
Feb 17, 2020 Feb 17, 2020

How could you have wasted time? Didn't get figure out the solution? After pretty much being told how to do it.

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Feb 17, 2020 Feb 17, 2020

LOL!!  😂

 

Markarius is lucky that the PDF is only specifying sex type assigned at birth, and not gender, and gender identity for an Equal Employment Opportunity office.

 

I would like to see  how  you can get that one figured out, considering  the known 63 genders, plus 83 or more gender combinations of the new millenium.

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
Guest
Feb 21, 2020 Feb 21, 2020
LATEST

thanks for the advice!

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