• I have an issue with dropdowns in my forms.

    On my registration page, I have 3 drop dropdown fields. When someone fill those forms and hit the registration button, the content (text value) of those dropdown is stored in the database. And that what I need.

    My problem is when a user edit its profile and confirm the modification, the text that was in the DB is replace by a number that the indicate the position in the dropdown fields.

    How can I keep getting text value form those dropdown when a profile get updated, because I’m using those field for different validations through my website; and those validations are based on text value, not numbers.

    Thanks!

    • This topic was modified 5 years, 8 months ago by chrisco75.
Viewing 1 replies (of 1 total)
  • Thread Starter chrisco75

    (@chrisco75)

    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>

Viewing 1 replies (of 1 total)

The topic ‘Dropdown value issue’ is closed to new replies.