How can I remove "None of the above" from radio button options without making the field required?

  • 0
  • 2
  • Question
  • Updated 1 year ago
  • Answered
The response is either "yes" or "no" and those are the only two radio buttons that should be available. Thanks.

[Edit: Added screenshots. The first shows the form as it is now, the yes/no multiple choice inputs available, the switch to radio buttons, and the resulting form where "None of the above" appears as an unwanted radio button.]

Photo of Matthew

Matthew

  • 10 Points

Posted 6 years ago

  • 0
  • 2
Photo of Cameron

Cameron

  • 0 Points
Hi Matthew,

My name is Cam from the QuickBase Support team. I would be happy to help. Do you have a screenshot of what you are trying to modify?
Photo of Matthew

Matthew

  • 10 Points
nm
Photo of David

David

  • 80 Points 75 badge 2x thumb
I don't believe that it is possible. A better choice may be to un-check the radio button option and leave it as text - multiple choice with only those two choices.

David
Photo of Lisa F

Lisa F

  • 0 Points
If you make your field required, the None of The Above will go away.
Photo of Matthew

Matthew

  • 10 Points
Yes, I asked how to avoid making it a required field.
Photo of Chanakya

Chanakya

  • 0 Points
make the field as required * when you don't need none of the above option (in radio buttons)
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,184 Points 20k badge 2x thumb
>I don't believe that it is possible.

Everything is possible. You can hide the radio button and the surrounding "None of the above" <label> with this script:

$("label.NoneOfTheAbove").hide();
Hi Dan,

It hides all the NoneOfTheAbove label from all multiple choice field but if we want to apply only for one field.. then?

Any ideas?

Thanks,
Gaurav
Photo of Jim Harrison

Jim Harrison

  • 1,926 Points 1k badge 2x thumb
Add an additional option in the select list on that field, call it "none of the above"
Photo of David

David

  • 80 Points 75 badge 2x thumb
Let me re-phrase that.... I don't believe that it is possible for us mortals in native quickbase. :)
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,184 Points 20k badge 2x thumb
What multiverse are you living in where you can't get QuickBase to do your bidding? Just create a text formula field with some HTML allowed using the following formula and you will remove the NoneOfTheAbove monkey business:

http://pastebin.com/km1rhjrh

I never understood this "Native QuickBase" meme. What is it about my method that is unnative QuickBase? Seriously cast out your demons that are holding you back from solving every QuickBase problem.
Photo of David

David

  • 80 Points 75 badge 2x thumb
There are no "demons" Dan. I am one of those people who started the quickbase experience with zero background in any web language. Quickbase brags about being for the "non-technical" people and I am one of those. I am trying to learn and have picked up a few things here and there and been tickled pink every time I do. Sorry if my learning curve is not a steep as yours. There's really no need to be condescending...I'm doing the best I can. I did learn one more thing from you. I need to stop trying to help anyone here on this forum.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,184 Points 20k badge 2x thumb
I was just being humorous. QuickBase is very good for creating rapid database applications but when you want to do more advanced things you will have to use various workarounds and scripts. If you cross that bridge when it arrives you can greatly extend what can be accomplished. Eventually I hope QuickBase would support more API to customize the product but until then you have to use workarounds.

Quite frankly, most of the well posed questions on this forum have simple answers.
Photo of breakweather

breakweather

  • 40 Points
FYI, I just came across this need and tried Dan's method and it worked great.  You basically just have to create a text-formula field, call it whatever you want, and put the below as the formula (make sure you check the Allow HTML box).

"<img src=\"/i/clear2x2.gif\" " &
"onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$('label.NoneOfTheAbove').hide();}\">"

Then, just put that field somewhere on the form that has the radio buttons on it, and it will hide the "None of the Above" label.  Slick!
Photo of Dane

Dane

  • 0 Points
"<img src=\"/i/clear2x2.gif\" " &
"onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$('label.NoneOfTheAbove').hide();}\">"
Photo of Beth

Beth

  • 170 Points 100 badge 2x thumb
The onload approach works great so long as you don't need to remove the tag.  However, it doesn't just remove the label, but also the radio button itself so that it appears that there is no way to remove the tag if it was applied in error.  Is there any solution for that or to change the label to something other than "None of the Above".  It is the language for most of us that is the problem, as most users mistake it as an acceptable value to be chosen and not a way to remove the tag and return the field back to no value.  Any additional suggestions would be appreciated.  My javascript knowledge is still pretty basic. 
Photo of Suzanne Davidson

Suzanne Davidson

  • 170 Points 100 badge 2x thumb

Hi:

Just an update to this post. I tried the code above and it does work well for removing the option, but in the newer quickbase you have to make it a "rich text" formula field. The html checkbox thing no longer applies.

Thanks for the tip, though, it was great to get that option out of there.