How to separate option values and text in drop-down form control?

Don Rea asked on November 18, 2022 19:41

Editing a simple (so far) form in Kentico 11. I am creating a drop-down. All I want to do is to have the value of each rendered option and the visible text of each option be different, like this: <option value="CatalogNumber">Product name</option> so that when I refer to the Value property of the drop-down I get the (in this case) CatalogNumber, but the user sees the product name. This is surely something people do every day, but I can not find anything in the doc, or on DevNet, explaining how to do it. Am I missing something so obvious that no one finds it necessary to mention?

Recent Answers


Don Rea answered on November 18, 2022 21:56

Found it here after another solid hour of searching (why is something so basic so hard to find?): https://stackoverflow.com/questions/43613188/macro-return-type-to-populate-drop-down-list-with-different-value-and-text-value

1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 21, 2022 07:12

In many parts of the UI there are tooltips available telling you what is the expected value. For example screen shot from the drop down field definition. And/or when you see the question mark icon, you can hover-over or click it to get sometimes even more details and examples, screen shot.

0 votesVote for this answer Mark as a Correct answer

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