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

Do not allow checkbox to be unchecked once chosen.

Explorer ,
Aug 04, 2022 Aug 04, 2022

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
749
Translate
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
1 ACCEPTED SOLUTION
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.

 

 

View solution in original post

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

Hello @Kathy409,

 

Can you post an example of your form?

Regards,

Mike

Translate
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

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.

 

 

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

Thanks! It works like a charm.

Translate
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