custom fields: Add default value choice in choice-type-custom-fields.

Add default choice option in choice type of custom profile field.
This commit is contained in:
Yashashvi Dave 2018-06-09 13:11:44 +05:30 committed by Tim Abbott
parent aa39b1e28e
commit 52b6d0ce9f
1 changed files with 1 additions and 3 deletions

View File

@ -4,9 +4,7 @@
<textarea maxlength="500" class="custom_user_field_value">{{ field_value }}</textarea>
{{else if is_choice_field}}
<select class="custom_user_field_value">
{{#unless field_value}}
<option></option>
{{/unless}}
<option value="">--{{t 'Select' }}--</option>
{{#each field_choices}}
<option value="{{ this.value }}" {{#if this.selected}}selected{{/if}}>{{ this.text }}</option>
{{/each}}