Is there any chance we can get this module to work for Select fields? I tried tweak by gleaming some knowledge from the module (https://www.drupal.org/project/webform_hints) where select fields work, but no such luck.

Comments

nelslynn created an issue. See original summary.

rafalenden’s picture

Hi nelslynn, yes it's possible and can be easily implemented.

nelslynn’s picture

Any hints on how? And/or do you have plans to add this to the module? Can I help in anyway?

rafalenden’s picture

nelslynn, at the moment I'm quite busy, but I'm happy to accept patches.
This functionality should be implemented in form_placeholder.js, where you could the type of form element and perform alterations.

rgnyldz’s picture

Any update on this?

tylermenard’s picture

I wrote a patch to cover the select fields in forms.

Refer to comments 8 and 10 for patches of the current release and dev verion.

tylermenard’s picture

Status: Active » Needs review
tylermenard’s picture

Here is another patch for the current version 7.1.6.

tylermenard’s picture

tylermenard’s picture

Patch for dev version 7.x-1.x.

pifagor’s picture

Status: Needs review » Postponed (maintainer needs more info)

Is it relevant?

imclean’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.22 KB

It would be handy. Here's a patch for 8.x-1.x, it requires an option with an empty value.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed 528e7e7 on 8.x-1.x authored by imclean
    Issue #2564539 by tylermenard, imclean, nelslynn, rafenden, pifagor,...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

robertoguzman’s picture

How do i make the Field Name to be the Placeholder instead of - none -?