chrisco75
Forum Replies Created
-
Hi @champsupertramp,
Sorry for the delay, I got sidetracked by other projects. I was wondering here I should put this piece a code, in function.php? Also I’m trying to convert a text field to a select dropbox; is the right data type is ‘select’ or it should be something else?
Thank you!
Hi @mikegandy
You can delete the plugin from the Form Builder and then recreate it with a select field with the options. To delete the custom field, just open the field builder > see the “Custom fields” section in the overlay and you will see the “x” button for the delete field.
Regards,
Is there another way to change a field type? By using this method, the field gets deleted from the database too not just the plugin. I wish to keep the data that are already there, but I wish to use the new format for the future entries.
Thanks!Example:
From the registration form:
<div class=”um-field-area “>
<select data-default=”English” name=”language” id=”language” data-validate=”” data-key=”language” class=”um-form-field valid not-required um-s1 ” style=”width: 100%” data-placeholder=””>
<option value=””></option>
<option value=”English” selected=””>English</option>
<option value=”Français”>Français</option>
<option value=”Español”>Español</option>
</select>
</div>——————-
From the user profile form:
<div class=”um-field-area um-field-area-has-icon “>
<select data-default=”English” name=”language” id=”language” data-validate=”” data-key=”language” class=”um-form-field valid not-required um-s1 ” style=”width: 100%” data-placeholder=””>
<option value=””></option>
<option value=”0″ selected=””>English</option>
<option value=”1″>Français</option>
<option value=”2″>Español</option>
</select>
</div>