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

Custom stroke color on radio square changes in PDF

Explorer ,
May 09, 2016 May 09, 2016

Copy link to clipboard

Copied

I have a form with Y/N options. I created the form in Indesign using the Sample Buttons. I chose a square that fills in with a square. I changed the stroke to be thinner and a color to match the style of the form.

When the PDF opens, the stroke on these boxes is thick and black... the original button color.

What do I need to do to retain the weight/color of the stroke on the box?

thanks!

TOPICS
Acrobat SDK and JavaScript

Views

608

Translate

Translate

Report

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
Advocate ,
May 09, 2016 May 09, 2016

Copy link to clipboard

Copied

So, what were you using? Buttons? Checkboxes?

From the description, it sounds like Checkboxes. In this case, open the PDF in Acrobat, switch to the form edit mode, select the checkbox(es), and display the properties. In the Appearance tab, you can set the border style and width, as well as the colors.

Note that checkboxes have essentially 3 line widths (corresponding 1, 2, and 3 pt). Other values (0, 4 and higher) can be set using JavaScript, but may have unpredictible results.

Now, if the appearance of the line is not "good enough", you could set the border to transparent, and scale the field so that the square when checked is positioned properly. That would use the line from the base document. However, you'd have to be very careful with positioning.

Hope this can help.

Votes

Translate

Translate

Report

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 ,
May 09, 2016 May 09, 2016

Copy link to clipboard

Copied

I'm using radio buttons that are squares. When clicked, the square fills in solid.

I'm creating in InDesign and want to do the design work there rather than doing all the buttons individually in Acrobat. And, as you've guessed, I don't want a 1-2-3 pt. selection.

I just tried creating my own button rather than using the sample buttons in InDesign and the stroke stayed small and a color. The fill-in is a circle, which I might live with. Or try to figure out how to put a square instead -- tomorrow

thanks for the info.

mev

Votes

Translate

Translate

Report

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
Advocate ,
May 09, 2016 May 09, 2016

Copy link to clipboard

Copied

To get the radio button behavior with checkboxes, give the checkboxes the same field name, but a different return value.

Votes

Translate

Translate

Report

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
LEGEND ,
May 09, 2016 May 09, 2016

Copy link to clipboard

Copied

LATEST

When field highlighting is active in Acrobat, the custom appearances that you can create in InDesign won't show up as expected, so that may be what's going on.

Votes

Translate

Translate

Report

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