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

Acrobat form checkbox with slash

Explorer ,
Oct 08, 2023 Oct 08, 2023

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

TOPICS
PDF forms
1.8K
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 ,
Oct 08, 2023 Oct 08, 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?

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 08, 2023 Oct 08, 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.

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 ,
Oct 12, 2023 Oct 12, 2023

That's a good idea. 😀

 

How can this script look like!?

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 12, 2023 Oct 12, 2023

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;

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 ,
Oct 13, 2023 Oct 13, 2023

Thanks a lot for your assistance.

Unfortunately it does not work 😔

 

Where did I go wrong?

 

 

Step 1:  (The template)

Bildschirm­foto 2023-10-13 um 20.47.04.png

 

 

 

 

 

 

 

 

 

Step 2:  (Add Comment)

Bildschirm­foto 2023-10-13 um 20.48.27.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Step 3:  (Add name)

Bildschirm­foto 2023-10-13 um 20.49.30.png

 

 

 

 

 

 

 

 

 

 

Step 4:  (Add button)

Bildschirm­foto 2023-10-13 um 20.52.57.png

 

 

 

 

 

 

 

 

 

 

 

 

 

JavaScript Debugger shows

Bildschirm­foto 2023-10-13 um 20.53.34.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I need your help  🙏🏻

thx

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 13, 2023 Oct 13, 2023

Did you get correct annot name?

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 ,
Oct 14, 2023 Oct 14, 2023

When I press CTRL+J, the JavaScript Debugger window comes up.

 

I give the code:

this.selectedAnnots[0].name;

and when I press enter. But it doesn't happen, just the courser goes to a new line.

Bildschirm­foto 2023-10-14 um 17.35.38.png

 

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 ,
Oct 14, 2023 Oct 14, 2023

I thought the name in 'Subject' was the Annot Name!

Bildschirm­foto 2023-10-13 um 20.49.30.png

 

 

 

 

 

 

 

 

 

Am I wrong about that?

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 14, 2023 Oct 14, 2023

Before you press CTRL+J make sure comment is selected.

Name should look like this:

Izrezak.PNG

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 ,
Oct 15, 2023 Oct 15, 2023

Thank you for your help.

 

It might be important which comment I take!?

Bildschirm­foto 2023-10-15 um 18.42.14.png

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 ,
Oct 15, 2023 Oct 15, 2023

Because if I take the comment 'Replace selected text' and select it, it gets a blue frame and when I then press CTRL+J the code still doesn't generate the annot name after pressing the Enter key!

 

Bildschirm­foto 2023-10-15 um 18.46.06.png

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 15, 2023 Oct 15, 2023

Are you pressing the correct 'Enter' key?

Enter.png

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 ,
Oct 24, 2023 Oct 24, 2023

Wow ... Thank you for your help.

I didn't know there were two different enter keys 😬

 

Now it works exactly as you described 👏🏻

 

You are my hero!

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 ,
Nov 12, 2023 Nov 12, 2023

I need your help again!

 

If the PDF file has two pages then the code will not work for elements on the 2nd page.

Is there another code for this?

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 ,
Nov 12, 2023 Nov 12, 2023

You need to change on which page is annotation, in the script 0 represent first page so if you have annotation on second page change 0 to 1.

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 ,
Nov 13, 2023 Nov 13, 2023
LATEST

Wow ... you are great!

Thank you very much 🙏🏻

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