Jump to content
  • 0

Radio Button to look like a checkbox


SuperNam
 Share

Question

3 answers to this question

Recommended Posts

  • 0

Hello @SuperNam,

This is doable via CSS code. Just insert it in the header of the Datapage.

<style>
input[type="radio"]{
   appearance: none;
   border: 1px solid #d3d3d3;
   width: 30px;
   height: 30px;
   content: none;
   outline: none;
   margin: 0;
   box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

input[type="radio"]:checked {
  appearance: none;
  outline: none;
  padding: 0;
  content: none;
  border: none;
}

input[type="radio"]:checked::before{
  position: absolute;
  color: green !important;
  content: "\00A0\2713\00A0" !important;
  border: 1px solid #d3d3d3;
  font-weight: bolder;
  font-size: 21px;
}
</style>

image.png.f49dec00caa44cd8e0499533eef86d1b.png

- Natoy

Link to comment
Share on other sites

  • 0

Hello,

Just to add, the following CSS code is what I use on my checkbox-style radio buttons: 
 

<style>
input[type="radio"]{
   appearance: none;
    background-color: #fff;
    width: 15px;
    height: 15px;
    border: 2px solid #ccc;
    border-radius: 2px;
    display: inline-grid;
    place-content: center; 
}

input[type="radio"]:checked {
 background-color:   #0075FF;
    border: 2px solid #0075FF;
}

input[type="radio"]:checked::before{
content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transform-origin: bottom left;
    background-color: #fff;
    clip-path: polygon(13% 50%, 34% 66%, 81% 2%, 100% 18%, 39% 100%, 0 71%);
}
</style>

The following image is what it looks like on my DataPage:
image.png.eeed922be6ce5ddd2613ce5e0010d868.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...