Kentico Custom Form Radio Buttons with child Multiple choice

stan zhen asked on February 19, 2021 19:56

Hi, I have a form created with a radio button field that has 4 options and it should be a required field, for options 1 and 4 I'd also like to have some child multiple choice options that should also be required if the radio button for option 1 and 4 is selected.

I'm having troubles trying to get this set up, I'm able to set it up in a way where I have a dependent field and have the multiple choice buttons show up when the radio buttons are clicked but they always show up at the very bottom which is not what I want.

Example of what I want:

  • Option 1
    • child multiple choice 1 for option 1
    • child multiple choice 2 for option 1
  • Option 2
  • Option 3
  • Option 4
    • child multiple choice 1 for option 4
    • child multiple choice 1 for option 4

So far I'm only able to get this set up which I don't want:

  • Option 1 for example when user clicks on option 1 the multiple choice options would show up and be appended to the very bottom
  • Option 2
  • Option 3
  • Option 4
  • child multiple choice 1 for option 1
  • child multiple choice 2 for option 1

Any help would be appreciated to get the format I want thanks!

Recent Answers


Brenden Kehren answered on February 20, 2021 13:33

Sounds like the best solution for you is to create a custom form control.

https://docs.xperience.io/k12sp/custom-development/developing-form-controls

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.