2

We created a custom drop list in WFFM to hold values populated from DB.

The problem is the value is not getting selected in the drop list.

Example: If the user's country is UK, the drop list shows the first country that is present in the dropdownlist.

The custom droplist html is:

@Html.DropDownListFor(x => Model.Value, Model.Items, new { @class = "form-control" })
  • Can you check if there's an item with Selected = true in Model.items? – josedbaez Jan 24 '18 at 13:11
  • Hi Saggi ,Can you please share the logic how you created custom drop down – user3621 Nov 28 '18 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.