Radio Button Activity

New Here ,
Sep 10, 2022 Sep 10, 2022

Copy link to clipboard

Copied

I am creating a PDF Form. On it, I have five radio buttons:

  • PS-1
  • PS-2
  • PS-3
  • PS-4
  • PS-5

When you click/release a button, that button and all lower buttons should be set to on, and all higher buttons should be set to off.  Example: Clicking the PS-3 button results in PS-1, PS-2, and PS-3 turning on, and PS-4 and PS5 turning off.

How would I accomplish such a feat?

 

Jim

TOPICS
How to , JavaScript

Views

26

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
Community Expert ,
Sep 10, 2022 Sep 10, 2022

Copy link to clipboard

Copied

LATEST

Radio-buttons are not a good choice for this, as they can't be "unselected". Use check-boxes.

Then you would be able to use a script, attached to the MouseUp event of each field, to achieve it.

What should happen when the box is unticked, though? Should that also untick all the ones following it?

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