Feedback form with radio button

  • 1
  • Question
  • Updated 3 years ago
I need to create a feedback form with question in one column and radio button as answers(good,poor.....), is there any standard way to create a table with option as radio buttons??
Photo of khushboo

khushboo

  • 198 Points 100 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
khushboo...Skuid can render a picklist field as a radio button.  Just add a field editor to your page layout.  Remove the 2nd column.  Then add your fields to the remaining column.  For each field, change the field renderer to 'radio button'.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Thanks Bill.

I'll add this. To use a skuid table,  your questions need to records in an object and not different fields.  The table component iterates over records,  it cannot really be instructed to show field A on line 1,  field B on line 2 etc.   If this is your data model,  you could use a field editor and create pseudo table, but that would not be very extensible.
Photo of khushboo

khushboo

  • 198 Points 100 badge 2x thumb
Is it possible to bind the radio button of a row so that user can select only one at a time, if i use field editor or I should go for normal VF page???
Ex: Q1 - 1 2 3 4( select only one option, these are radio button as option)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
khushboo... it sounds like you should just make that one picklist field (with your 'questions' as the options for the picklist, and render it in a field editor as radio buttons.