• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Do not allow checkbox to be unchecked once chosen.

Community Beginner ,
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

318

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

Community Expert , 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.

 

 

Votes

Translate

Translate
Advisor ,
Aug 04, 2022 Aug 04, 2022

Copy link to clipboard

Copied

Hello @Kathy409,

 

Can you post an example of your form?

Regards,

Mike

Votes

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 ,
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.

 

 

Votes

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

Copy link to clipboard

Copied

LATEST

Thanks! It works like a charm.

Votes

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