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

Acrobat form checkbox with slash

Explorer ,
Oct 08, 2023 Oct 08, 2023

Copy link to clipboard

Copied

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

Views

1.1K

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

Copy link to clipboard

Copied

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?

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

Copy link to clipboard

Copied

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.

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

Copy link to clipboard

Copied

That's a good idea. 😀

 

How can this script look like!?

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

Copy link to clipboard

Copied

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;

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

Did you get correct annot name?

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

Copy link to clipboard

Copied

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

 

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

Copy link to clipboard

Copied

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?

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

Copy link to clipboard

Copied

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

Name should look like this:

Izrezak.PNG

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

Copy link to clipboard

Copied

Thank you for your help.

 

It might be important which comment I take!?

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

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

Are you pressing the correct 'Enter' key?

Enter.png

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

Copy link to clipboard

Copied

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!

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

Copy link to clipboard

Copied

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?

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

Copy link to clipboard

Copied

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.

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

Copy link to clipboard

Copied

LATEST

Wow ... you are great!

Thank you very much 🙏🏻

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