Need help in scrip of check boxes

New Here ,
Jun 08, 2022 Jun 08, 2022

Copy link to clipboard

Copied

Hi 

 

I need help in check boxes like

there are two fields Gender ( Male or Female)  So when I select the Male box it automatically crosses or blocks the female box.

 

Please help me and see the attachment is there any possibility.

 

Thank you.

TOPICS
Crash or freeze , Create PDFs , How to , JavaScript , PDF forms

Views

17

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 ,
Jun 09, 2022 Jun 09, 2022

Copy link to clipboard

Copied

HI,

 

The easiest way to do this would be to use a Radio Button Group ( only 1 can be selected so the code is done for you) you can change how they are styled so they look like your attachment.

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 ,
Jun 09, 2022 Jun 09, 2022

Copy link to clipboard

Copied

LATEST

From a programmatic standpoint radio buttons are for single item selections. Checkboxes are for multiple options. If you switch to the proper type of input your problem will be solved as @BarlaeDC suggests.

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