Do not allow checkbox to be unchecked once chosen.

New Here ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

I have a "Statement of Understanding" that we want them to check once they read it.  However, once they check it, I want it locked so they cannot uncheck it.

Is that possible?

TOPICS
Create PDFs , JavaScript

Views

30

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 , Aug 04, 2022 Aug 04, 2022

If you use checkbox you can use this script as Mouse UP event of checkbox:

if(event.target.value != "Off")
event.target.readonly = true;

 

Or you can simply use radio button and change button style to 'check' so it looks like checkbox, because radio buttons once checked can't be unchecked.

 

 

Likes

Translate

Translate
Advocate ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

Hello @Kathy409,

 

Can you post an example of your form?

Regards,

Mike

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 ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

If you use checkbox you can use this script as Mouse UP event of checkbox:

if(event.target.value != "Off")
event.target.readonly = true;

 

Or you can simply use radio button and change button style to 'check' so it looks like checkbox, because radio buttons once checked can't be unchecked.

 

 

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 ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

LATEST

Thanks! It works like a charm.

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