• Resolved Dewdan

    (@dewdan)


    Hi Narinder,

    Sorry to bother you again.

    I was wondering if you have noticed that placeholder does’t work.

    I’d like to add this: placeholder “Optional” but nothing prints, there is the option when adding it to contact form, “Default value” and “Use this text as the placeholder of the field” but nothing prints when publishing. Any solution for this?

    Cheers
    Daniel

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @dewdan,

    Placeholder option is working. But fields are autofill. So placeholder is not visible. You can disable country dial code and the placeholder for phone number. It will visible there.

    I am working on an empty dropdown placeholder for country dropdown.
    Thank you for support. Your replies keep me working on it.

    Regards
    Narinder.

    Thread Starter Dewdan

    (@dewdan)

    Thank you Narinder,

    I don’t quite understand your explanation.

    I don’t want to disable the country dial code, I just want to phone field to work with placeholder like this:

    [phonetext phonetext-250 placeholder “Optional”]

    But either placeholder doesn’t work I get just a blank placeholder.

    I wonder if the issue is that the input type is set to text instead of
    See source code here:
    <input type="text" name="phonetext-250" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-phonetext" aria-invalid="false" placeholder="Optional" autocomplete="off">

    According to the documentation from Contact Form 7 either “placeholder” and “minlength” and “maxlength” should work.
    https://contactform7.com/text-fields/#tel

    Not sure but something isn’t quite working, I would be happy if at least the placeholder would work as the input field TEXT also should accept placeholder ??

    Cheers
    Daniel

    Thread Starter Dewdan

    (@dewdan)

    Sorry Narinder,

    I actually disabled the country code as you asked and yes now placeholder is working, but the message send comes without country code which is not the result I expected, even if in front end the drop down for flags is still present but the country code isn’t send in the message anymore.

    Cheers
    Daniel

    • This reply was modified 5 years, 10 months ago by Dewdan.
    • This reply was modified 5 years, 10 months ago by Dewdan.
    Thread Starter Dewdan

    (@dewdan)

    Sorry but this still doesn’t work, I tried replacing this bit to no avail.
    country-phone-field-contact-form-7/assets/js/custom_script.js

    	$(".wpcf7-phonetext").intlTelInput({
                  // allowDropdown: false,
                  // autoHideDialCode: false,
                   autoPlaceholder: "off",

    I replaced: autoPlaceholder: "off",
    to autoPlaceholder: "on",

    Actually it seems like the custom script doesn’t do anything after the last upgrade.

    Cheers
    Daniel

    • This reply was modified 5 years, 10 months ago by Dewdan.
    Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @dewdan
    For the phone number field placeholder. If you enable the country dial code prefix. Than placeholder will not visible. Because dial code added as the input value.
    On disable the dial-code. You can fix the phone number field placeholder will be visible.
    You can disable the dial code from plugin settings.

    Please update the plugin version.
    Regards
    Narinder.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Placeholder option not printing’ is closed to new replies.