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

Change border color on check box upon selection?

Community Beginner ,
Mar 18, 2020 Mar 18, 2020

DE.PNG

 

Is there a way to make these three options checkboxes, and have the one selected change to a thicker, red border only when selected?

TOPICS
PDF forms
565
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 ,
Mar 18, 2020 Mar 18, 2020

You can add check-boxes next to them, but if you want the actual boxes to act this one you would need to use buttons and a custom-made script to "select" and "unselect" them when the user clicks 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 ,
Mar 18, 2020 Mar 18, 2020
LATEST

How about make them buttons. Then add a hidden text field to save/control the state. 

 To get started, watch the "Form Scripting Basics" video here:

https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro

 

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