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
This worked a treat! Thank you.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
This worked a treat! Thank you.
is working on a reply...