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

Being able to circle a choice instead of an x or a check mark with prepare a form

Explorer ,
Oct 18, 2023 Oct 18, 2023

Hi,

 

I would like to know if it is possible to create a check box or radio button or ok button that will simply circle the choice made instead of a solid ball or check or x in the center of it.  I have included the document and a picture pointing to where I am trying to implement this.  Please let me know if you can help me.

 

Best regards

J

TOPICS
Edit and convert PDFs , How to , JavaScript , Modern Acrobat , PDF , PDF forms
541
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
Community Expert ,
Oct 18, 2023 Oct 18, 2023
LATEST

You can use buttons instead with this script in each button as 'Mouse UP' action:

event.target.strokeColor = (color.equal(event.target.strokeColor, color.transparent)) ? color.black : color.transparent;

Here is your file with script and buttons added, I also add condition, so only one button can be 'selected' at a time:

https://drive.google.com/file/d/1jG9_-1vZHt-3TANQN4iwa4QrCzq0wzyg/view?usp=share_link 

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 ,
Oct 18, 2023 Oct 18, 2023
LATEST

You can use buttons instead with this script in each button as 'Mouse UP' action:

event.target.strokeColor = (color.equal(event.target.strokeColor, color.transparent)) ? color.black : color.transparent;

Here is your file with script and buttons added, I also add condition, so only one button can be 'selected' at a time:

https://drive.google.com/file/d/1jG9_-1vZHt-3TANQN4iwa4QrCzq0wzyg/view?usp=share_link 

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