Highlighted

Required field activates after click on radio button?

Community Beginner ,
Nov 13, 2020

Copy link to clipboard

Copied

Hello,
next question,

I've two radio buttons in one group
[   ] as of now or [  ] due date        also some seperate fields for day, month and year as  [M][M][D][D][Y][Y]

 

Is there a possibility, if you click on the "as of due date" button, that all text fields for the date are activated (writable + required)?

If the "writeable first" does not work, it would be good to know how to make it then a required field.

TOPICS
PDF forms

Views

64

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

Required field activates after click on radio button?

Community Beginner ,
Nov 13, 2020

Copy link to clipboard

Copied

Hello,
next question,

I've two radio buttons in one group
[   ] as of now or [  ] due date        also some seperate fields for day, month and year as  [M][M][D][D][Y][Y]

 

Is there a possibility, if you click on the "as of due date" button, that all text fields for the date are activated (writable + required)?

If the "writeable first" does not work, it would be good to know how to make it then a required field.

TOPICS
PDF forms

Views

65

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
Nov 13, 2020 0
Most Valuable Participant ,
Nov 13, 2020

Copy link to clipboard

Copied

Yes, that's possible. What are the names of the fields and the export values of the radio-button group?

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
Reply
Loading...
Nov 13, 2020 0
Community Beginner ,
Nov 15, 2020

Copy link to clipboard

Copied

group name = gilt
radio button 1 = ab sofort

radio button 2 = ab fälligkeit

 

3x textfields called:

- Tag

- Monat

- Jahr

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
Reply
Loading...
Nov 15, 2020 0
Engaged ,
Nov 16, 2020

Copy link to clipboard

Copied

You can use this code in one of the radio buttons to make fields writable and required
if you want them to be readonly and not required use same code in second radio button
just change true-false, false-true:
this.getField("Tag").required = true;
this.getField("Tag").readonly = false;
this.getField("Monat").required = true;
this.getField("Monat").readonly = false;
this.getField("Jahr").required = true;
this.getField("Jahr").readonly = false;

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
Reply
Loading...
Nov 16, 2020 1
Community Beginner ,
Nov 16, 2020

Copy link to clipboard

Copied

Thank you, this works almostly. But if I click on the 2nd radio button with this required code. And going back to the first radio button, the textfield are still required.

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
Reply
Loading...
Nov 16, 2020 0
Engaged ,
Nov 16, 2020

Copy link to clipboard

Copied

In second button change every "true" to "false" and "false" to "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
Reply
Loading...
Nov 16, 2020 1