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

Update checkbox value based on another checkbox

New Here ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Hello,

 

I have a checkbox group called SchedYN with two check boxes. One with a value of Yes and the other No.

 

I have this JavaScript if the mouse up event on the Yes value:

 

This.getField("SchedHours"),required = True;


I need to add to this so that another checkbox group called NewWPYN has its value set to Yes

 

Thank you in advance 

TOPICS
Edit and convert PDFs , How to , JavaScript , PDF forms

Views

624

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

correct answers 1 Correct answer

Community Expert , Feb 02, 2021 Feb 02, 2021

You can add this to code.

this.getField("NewWPYN").value = "Yes";

Votes

Translate

Translate
New Here ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Sorry the code is .required - not a comma

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 ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

It's also "true", not "True"...

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
New Here ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Sorry yes! My iPad is capitalising things on this forum.

 

Are you able to help resolve my question?

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 ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

You can add this to code.

this.getField("NewWPYN").value = "Yes";

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
New Here ,
Feb 02, 2021 Feb 02, 2021

Copy link to clipboard

Copied

Thank you so 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
New Here ,
Apr 02, 2023 Apr 02, 2023

Copy link to clipboard

Copied

LATEST
Great Share
I enjoyed reading this.
thanks alot.

<a href="https://dnd5e.org/file/fizbans-tresury-of-dragons-pdf/">Fizban pdf</a>
<a href="https://dnd5e.org/file/call-of-the-netherdeep-pdf/">Cotnd pdf</a>
<a href="https://dnd5e.org/file/journeys-through-the-radiant-citadel-pdf/">Jttrc PDF</a>
<a href="https://dnd5e.org/file/keys-from-the-golden-vault-pdf/">Golden Vault PDF</a>
<a href="https://dnd5e.org/file/strixhaven-curriculum-of-chaos-pdf/">Strixhaven PDF</a>
<a href="https://dnd5e.org/file/hoard-of-the-dragon-queen-pdf/">Dragon Queen</a>
<a href="https://dnd5e.org/file/dragonlance-shadow-of-the-dragon-queen-pdf/">Dragonlance pdf</a>

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