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

Button to check/unceck checkboxes

Explorer ,
Sep 03, 2023 Sep 03, 2023

Hi sorry for this basic question but i'm very new to Adobe and javascript. 

i'm trying to edit a flow chat so when a button is click it will automatically check/uncheck the checkboxes

Screenshot 2.png 

TOPICS
JavaScript
717
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
2 ACCEPTED SOLUTIONS
Community Expert ,
Sep 03, 2023 Sep 03, 2023

This should make checkbox checked, just replace name with your actual checkbox name ('true' will check and 'false' will uncheck):

this.getField("Check Box1").checkThisBox(0, true);

 

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 ,
Sep 03, 2023 Sep 03, 2023
LATEST

I explained that in my post, change 'true' to 'false'. 

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 ,
Sep 03, 2023 Sep 03, 2023

What's the question?

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 ,
Sep 03, 2023 Sep 03, 2023

Hi sorry i would like to create it so if i click on button 7 then the checkbox above will automatically tick 

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 ,
Sep 03, 2023 Sep 03, 2023

This should make checkbox checked, just replace name with your actual checkbox name ('true' will check and 'false' will uncheck):

this.getField("Check Box1").checkThisBox(0, true);

 

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 ,
Sep 03, 2023 Sep 03, 2023

Thank you Nesa 

What do i put if i instead of a tick i want to clear/ bland the checkbox?

 

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 ,
Sep 03, 2023 Sep 03, 2023
LATEST

I explained that in my post, change 'true' to '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