Kentico 12 MVC Forms - SQL Query options

Brandon White asked on December 13, 2018 17:08

How would I add a SQL query for the options of a radio button field or dropdown list? In v11 there was that option in the fields tab which is not available in v12. I tried just adding a sql query in the options fields in the form builder but that doesn't work. Didn't find this in the documentation either.

Recent Answers


David te Kloese answered on December 14, 2018 10:32

Hi Brandon,

MVC Forms are completely different from the Portal engine Forms. Currently you don't really have the option to hook it up to a SQL query.

You'd have to create your own Form Component, you can check in the documentation how to set that up.

In the Defining your own properties section you can see how to create your own properties for the component.

1 votesVote for this answer Mark as a Correct answer

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