Possibility to add custom placeholder

Created on 6 May 2022, over 2 years ago
Updated 10 July 2024, 5 months ago

I tried to use this module for creating a custom form field but there is no option to add a custom placeholder.

Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

🇷🇺Russia nortmas Crimea/Thailand

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Assigned to shivam_tiwari
  • @shivam_tiwari opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • 🇫🇷France b-haslag

    Re-posting patch.

  • Assigned to psf_
  • Status changed to Needs work about 1 year ago
  • 🇪🇸Spain psf_ Huelva

    The patch in #9 don't work for me.

    To do the work I need to change

    autoPlaceholder: "polite",

    to

    autoPlaceholder: "off",

    in js/phone_international.js

    I will try to do a new patch.

  • @psf_ opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • First commit to issue fork.
  • 🇮🇳India nayana_mvr

    The previous patch was not getting applied. It was showing the following error:-

    Checking patch js/phone_international.js...
    error: while searching for:
              },
              preferredCountries: preferred ? preferred.split("-") : [],
              nationalMode: true,
              autoPlaceholder: "aggressive",
              formatOnDisplay: true,
              hiddenInput: "full_number",
              utilsScript: drupalSettings.phone_international.path + "/js/utils.js",
    
    error: patch failed: js/phone_international.js:28
    error: js/phone_international.js: patch does not apply
    Checking patch src/Element/PhoneInternationalElement.php...
    Checking patch js/phone_international.js...
    error: while searching for:
              },
              preferredCountries: preferred ? preferred.split("-") : [],
              nationalMode: true,
              autoPlaceholder: "polite",
              formatOnDisplay: true,
              hiddenInput: "full_number",
              utilsScript: drupalSettings.phone_international.path + "/js/utils.js",
    
    error: patch failed: js/phone_international.js:28
    error: js/phone_international.js: patch does not apply
    Checking patch src/Element/PhoneInternationalElement.php...
    Hunk #1 succeeded at 152 (offset 3 lines).

    So created a new MR in which I have added a new field in the widget settings to input custom placeholder which will be displayed in the input field. Kindly review.

Production build 0.71.5 2024