Forum Discussion

MatthewMatthew2's avatar
MatthewMatthew2
Qrew Trainee
12 years ago

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

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

18 Replies

  • 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.
  • 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!
  • "<img src=\"/i/clear2x2.gif\" " &
    "onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$('label.NoneOfTheAbove').hide();}\">"
  • 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. 
  • 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.