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

Printable version with Radio buttons/Check Boxes

Participant ,
Feb 28, 2007 Feb 28, 2007
I have a form that works very well that has check boxes and radio buttons.

All is well with the form.

But now I need to creat a printable version of the form after the user completes it.

The problem is when the user gets to the printable version they can still click the radio buttons/check boxes.
( I know it doesnt write to the db)

How can I create this printable version so that the radio buttons/check boxes cannot be changed?
489
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

correct answers 1 Correct answer

Deleted User
Feb 28, 2007 Feb 28, 2007
Since this is a print-only page, you might consider making images of your radio buttons and check boxes. Two radio buttons, one checked and the other unchecked; same thing for the check boxes.

The code below will should give you the idea.
Translate
Guest
Feb 28, 2007 Feb 28, 2007
you could set them to disabled = true (might have to do some styling tho)
if you're ok with relying on JS you could set onclick="return false;" for each.
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
Participant ,
Feb 28, 2007 Feb 28, 2007
I have put

<input name = "var1" onClick="return false" etc ..........>

on all of my radio buttons

But that only kind of disables them.;;;;;;;;;;;;;;;.if i click on an uncheked radio button it unchecks the button that was selected leaving all of the radio buttons blank

2 questions
Do I have to put something in the head tags re the onClick="return false"

Do I have to put something different on the selected button instead of onClick="return false"
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
Guest
Feb 28, 2007 Feb 28, 2007
LATEST
Since this is a print-only page, you might consider making images of your radio buttons and check boxes. Two radio buttons, one checked and the other unchecked; same thing for the check boxes.

The code below will should give you the idea.
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
Resources