You are viewing limited content. For full access, please sign in.

Question

Question

Extending formatting options for a radio button group

asked on April 10, 2017 Show version history

I am trying to convert an EEO-4 form into a a business process. The form requires a single selection from multiple choices, which I know could be handled as a radio button group. My issue is with the formatting--each choice has a rather lengthy label and an even longer definition. Out of the box, a radio button group doesn't handle this well.

So, I'm looking for suggestions on how to deal with this.

0 0

Answer

SELECTED ANSWER
replied on April 10, 2017

Had to do something very similar and ended up doing linked check-boxes instead. I actually did a single checkbox field for every selection (under some I actually had hidden radio buttons that would show only if that checkbox was selected). once I had all my boxes created, I just linked them (see code attached). I just passed the value of the check box selected to my next process.

 

Tato

 

$('input[id^=Field]').on('click', function(){
  var checkboxlist = ['Field23','Field21','Field26'];
  var clicked= $(this).attr('id');
  var clickedshort= clicked.substr(0,clicked.search("-"));
  $(checkboxlist).each(function(){
     if(this==clickedshort){
      resetbox(checkboxlist);
      document.getElementById(clicked).checked = true; 
      };     
  });     
});
function resetbox(mylist){
  $(mylist).each(function(){
  $('input[id^='+this+']').prop("checked", false);
  });
}

 

1 0
replied on April 10, 2017

This worked a trick! 

Thanks Tato,

Z

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.