• Hi, we have a form with a country dropdown that is set to display “United States” as the default so people don’t have to scroll through all the countries (since most users are in the U.S.). We are noticing that Safari desktop and iPhones do not display the “United States” default but instead just display the first country in the list. Is there a way to fix this? Below is the code that works fine in Chrome and Firefox but does not work in Safari or on iPhone (switching in the words “United States” for the default does not work either). Is there a way to fix this so it works in Safari and on iPhone as well? Thx.

    
    <label>Country[countries* address_country default:20]</label>
    
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter waterwalk

    (@waterwalk)

    Sorry, I did not get notified that there was a response. The form is on this page: https://welcome.calsouthern.edu/

    If you look at it on Safari or an iOS device the dropdown preselects “Afghanistan” even though we have “United States” set as the default.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    [countries* address_country default:20]

    This is not a form-tag natively supported by Contact Form 7.

    Do you use something (another plugin?) to generate the countries list?

    Thread Starter waterwalk

    (@waterwalk)

    Hi, I do not see any plugins to take care of this. There is a javascript on the backend written by the original developer but it has no list of countries. I did try doing the ‘select’ with just regular Contact Form 7 syntax (i.e. default “United States”) but that did not work on Safari/iOS either. Any suggestions on what else we might try?

    Thread Starter waterwalk

    (@waterwalk)

    p.s. I did try this:

    <label>Country[countries* address_country default:get “United States (US)”]</label>

    It seems to work in Safari but on the backend it shows an error (in the contact form side panel). I’m not sure if that is due to the change or not though since the error does not say what is wrong.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default option in dropdown not working in Safari’ is closed to new replies.