Is there a way to change size of radio buttons or a good alternative to them for tablets?

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered

They can be hard to accurately press the one you want on a tablet where I have a lot of them as a type of "inspection form" (Yes/No/Na). I thought about trying a Formula-Text field, but I don't know how to make it change the value of another field when clicked. Thanks

Photo of Matthew

Matthew

  • 0 Points

Posted 4 years ago

  • 0
  • 1
Photo of QuickBaseCoach App Dev./Training

QuickBaseCoach App Dev./Training, Champion

  • 65,320 Points 50k badge 2x thumb
If you wanted to make a toggle button for a checkbox field, you could use this type of URL formula.

var text NewToggle= If([Toggle to trigger Advance Packing List to CATSA]=true,"0","1");
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & ToText([Record ID#])
& "&_fid_71=" & $NewToggle;


"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"


Don't be scared off by that JavaScript. It's just a standard block of code, always the same to run the formula variable called URL and refresh the record or report.

But while the buttons will be nice and big, it does mean that the page will refresh on each button push. So response time could be an issue for your users.

In the above example I am checking the existing value of a checkbox field and the setting a formula variable to the opposite value. Then I edit the record and put that value into field ID 71.
Photo of Matthew

Matthew

  • 0 Points
Thanks Mark, I just tested and I don't think this is a path we can go down. It creates a new record upon the first button press which becomes a headache when a record might need to be cancelled during its entry. Along with that, I couldn't get it to return to the form after pressing the button. Too much of a hassle on a tablet. I think I may try looking into just showing the text larger on the tablet's screen via browser settings if that is a possibility.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,044 Points 20k badge 2x thumb
Large Checkboxes
https://haversineconsulting.quickbase.com/db/bj5kqfezw


Pastie Database
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=437


It looks like attached photos are showing up as thumbs.
Photo of Matthew

Matthew

  • 0 Points
Very slick! Thanks. Though, I need it for radio buttons and would you just use the same code as a formula-text field somewhere on the form to get it for adding records? The slanted QB page of yours cracks me up, by the way.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,044 Points 20k badge 2x thumb
It works the same for radio buttons but where are you seeing them - QuickBase uses checkboxes.

>The slanted QB page of yours cracks me up, by the way.

I hurt myself in a game of croquet that got a little spirited and my neck is leaning to the right. I found that if I tilt the screen to the right I can see it normally.

>... would you just use the same code ...

I would use the attached images instead of the dataurl. I used a dataurl for one of the images because I didn't want to upload a file to my application. I am lazy like that.