Making a custom form component to compare against multiple choice component

Douglas Fittipaldi asked on May 28, 2026 22:57

Recently, I've made a custom form component to compare with other fields, but saw that it was only able to compare against certain fields, such as text inputs, dropdowns, and radio buttons. What kind of form component would I have to make so I can compare it against a multiple choice component? I've tried making a custom listbox, but no go. I've made the view component inherit from SelectorFormComponent<[Custom Properties Class]> and the properties class inherit from SelectorProperties. I've been getting a lot of weird results from Google and it's AI that mixes code from different versions, both older and newer. We're on v13.0.138. What do I have to render in order for me to compare to components that have more than one value?

Correct Answer

Douglas Fittipaldi answered on June 3, 2026 17:00

For anyone reading this, I've figured it out. First, make your properties class inherit from MultiSelectorProperties like so:

public class HiddenMultipleInputProperties : MultiSelectorProperties

Then have your component class inherit from MultiSelectorFormComponent:

public class HiddenMultipleInputComponent : MultiSelectorFormComponent<HiddenMultipleInputProperties>

Follow the prompts in VS to fill in the classes for both. For the view, I made some checkboxes. And now I'm able to compare my custom field component to the native Multiple Choice and (for some reason) Textarea components. Hope this helps someone.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Faisal Ahmed Rony answered on June 1, 2026 05:56 (last edited on June 2, 2026 08:17)

Hi Douglas! For multi-value components like Checkbox lists, ensure your custom component inherits from FormComponent< List < string >, CustomProperties >. Since AI often mixes XbyK and K13 code, double-check that you're using the standard .NET Core model binder. This should fix the comparison logic. Good luck!

0 votesVote for this answer Mark as a Correct answer

Douglas Fittipaldi answered on June 1, 2026 14:28 (last edited on June 2, 2026 08:17)

Thanks, Faisal, but your comment got cut off. I'm guessing you mean FormComponent<List<[Custom Properties Class]>,string>?

0 votesVote for this answer Mark as a Correct answer

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