Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to have a default value any different from the blank one?
Found here too https://stackoverflow.com/questions/45458936/how-to-assign-default-value-for-dropdown-list-in-umbraco
I think you can use nupicker drop down.
Look at: FieldType.DropDownList in the fieldTypes folder.
Replace:<option value=""></option>
<option value=""></option>
With:
var settings = Model.AdditionalSettings; <option value="">@settings["DefaultValue"]</option>
Then ensure you set the default value property in your dropdown list in the Umbraco Forms backoffice for the given form
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Default value for dropdown list.
Is it possible to have a default value any different from the blank one?
Found here too https://stackoverflow.com/questions/45458936/how-to-assign-default-value-for-dropdown-list-in-umbraco
I think you can use nupicker drop down.
Look at: FieldType.DropDownList in the fieldTypes folder.
Replace:
<option value=""></option>
With:
var settings = Model.AdditionalSettings; <option value="">@settings["DefaultValue"]</option>
Then ensure you set the default value property in your dropdown list in the Umbraco Forms backoffice for the given form
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.