• Resolved andreamarucci

    (@shiftsrl)


    Hello I’d like to create a list of European countries using the Select field but if someone is from a not listed country I’d like to have a “Other” choice with the input of the country of origin. How can I do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @shiftsrl,

    Thank you for asking this question.

    You can add a new Select Field or input field for those whose countries are not listed in the list. You can use the visibility logic to show the input or select a field if the option “Others” is selected.

    Please find more about visibility logic here: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#Forminator-Conditional-Logic

    I hope that helps. Please feel free to contact me if you need any further clarification.

    Kind Regards,
    Nebu John

    Thread Starter andreamarucci

    (@shiftsrl)

    Yes, I’ve thought about this but this one should be a new field and the results of “other” will be in this new field and not in the original “country” one. That pose some difficulties sorting out the country field where all the country represented should be.

    Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @shiftsrl

    If you add a select field you can put a lit of countries and an option “Other” there. But it’s not currently possible to provide input directly in select field, I’m afraid.

    If users are to be able to input their own country, it must use separate field for such input so in submissions the original select field will state “other” and the actual country will be in separate field.

    I think that with a bit of custom code some sort of “workaround” could be achieved: the submissions would still work based on two fields (the “select” field for predefined countries and additional input field if “other” country is selected) but then it may be possible to additionally “copy” value from that input field into submitted value of select field, overwriting the “other choice”.

    I’d rather not make promises yet but if that’s something that would be acceptable workaround, I can ask our developers to check if it would be doable.

    Best regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @shiftsrl ,

    We haven’t heard from you for several days now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Select with “other” input’ is closed to new replies.