As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #2744336
Phone number field prefilled
Closed

Comments

  • Julia Böckh started the conversation

    When booking an appointment we made the phone number mandatory.

    When someone selects a country flag/country code, a phone number (which is mandatory) is prefilled which the user has to type over. This happens in both firefox as well as internet explorer. The fact that a phone number is shown in this field, totally confuses the users. When selecting Germany it shows 01512 3456789 and for Switzerland it will show 078 123 45 67. Any idea how we can make sure the text box for the phone number remains empty?

  • [deleted] replied

    Hi, Julia!

    Thank you for choosing Amelia.

    Please try to add this JavaScript to the page with Amelia:

    <script>
      window.beforeConfirmBookingLoaded = function () {
        var field = document.querySelector("#am-confirm-booking > div:nth-child(1) > form > div.am-confirm-booking-data.el-row > div:nth-child(6) > div > div > div > input");
     
        setTimeout(function () {
          field.setAttribute('placeholder', '');
        }, 500);
     
        var elements = document.getElementsByClassName("el-select-dropdown__item");
     
        for (var i = 0; i < elements.length; i++) {
          elements[i].addEventListener(
            'click',
            function() {
              field.setAttribute('placeholder', '');
            }
          );
        }
      }
    </script>

    Hope that will resolve the issue.

    Best Regards. 

  • Julia Böckh replied

    Fantastic! That did the trick for us! Thank you :)

  • [deleted] replied

    Hi, Julia!

    I'm happy I could helpsmile.png

    Please feel free to contact us if you have any other questions.

    Best Regards. 

  •  1
    Marketricks replied

    Thanks Liza!