Dropdown list on the Form

Wei Wang asked on August 19, 2021 19:15

Hi,

I try to use this format for the dropdown list (List of options) on the form with macros to indicate visibility. But after I add the macro piece, the selection you choose on the form cannot be actually selected, when I do the submit it ask you to select again.

Syntax is: Food; Food; {% programtype == "" %} Plant; plant; {% programtype == "" %}

Not sure why it's not working. We are using Kentico 11 portal Engine.

Thanks, Wei Wang

Recent Answers


Dmitry Bastron answered on August 23, 2021 06:44

Hi Wei,

Do you have "depends on another field" and "has depending fields" checkboxes checked?

For your field from question you should have "depends on another field" checked, and programtype should have "has depending fields" checked.

0 votesVote for this answer Mark as a Correct answer

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