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

92

Likes

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

Adobe Community Professional , Feb 02, 2021 Feb 02, 2021
You can add this to code.this.getField("NewWPYN").value = "Yes";

Likes

Translate

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

Copy link to clipboard

Copied

Sorry the code is .required - not a comma

Likes

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

Copy link to clipboard

Copied

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

Likes

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?

Likes

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

Copy link to clipboard

Copied

You can add this to code.

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

Likes

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

LATEST

Thank you so much!

Likes

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