Skip to main content
Participating Frequently
October 8, 2023
Question

Acrobat form checkbox with slash

  • October 8, 2023
  • 1 reply
  • 2418 views

How can I change the checkbox style in Adobe Acrobat when creating a form? I want a checkbox with 'slash' and not cross. Thanks

This topic has been closed for replies.

1 reply

KeyjieAuthor
Participating Frequently
October 8, 2023

The reason is:

I create a printable learning sheet. The user should be able to mark the wrong words in a sentence with a slash by clicking on them!

For this I just wanted to put a checkbox with 'slash' on corresponding words.

I can also use the 'cross', but the default is a classic strikethrough or forward slash!

Or does anyone have another solution?

Nesa Nurani
Community Expert
October 8, 2023

You can use the comment tool to strikethrough a word, and then place a button over the word with script to show/hide that strikethrough.

Nesa Nurani
Community Expert
October 12, 2023

That's a good idea. 😀

 

How can this script look like!?


1. Strike-through word with comment tool.
2. Now you need to get that annot name,

    select that comment (if not already selected) and open console (CTRL+J in windows)
    now in console paste this code:
    this.selectedAnnots[0].name;
    and press Enter to get the name, now copy that name and put it into code where it says "Your annot name goes  here".

3. Select 'Prepare form' and add button field, place it over word and set both border and fill color to 'No color' (Transparent)
Go to button properties and select 'Action' tab,
for 'Select trigger' select 'Mouse UP'
for 'Select action' select 'Run a JavaScript' click on 'Add' and paste script inside.

Script:

var annot = this.getAnnot(0, "Your annot name goes here");
annot.hidden = annot.hidden == false ? true : false;