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

Update checkbox value based on another checkbox

New Here ,
Feb 02, 2021 Feb 02, 2021

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
1.1K
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
1 ACCEPTED SOLUTION
Community Expert ,
Feb 02, 2021 Feb 02, 2021

You can add this to code.

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

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

Sorry the code is .required - not a comma

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

It's also "true", not "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
New Here ,
Feb 02, 2021 Feb 02, 2021

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

 

Are you able to help resolve my 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
Community Expert ,
Feb 02, 2021 Feb 02, 2021

You can add this to code.

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

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

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