Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The patch adds the capability to configure a placeholder for exposed filters.
Todo: add an option only for text fields.
Need help to improvement.
Comments
Comment #2
m.lebedev CreditAttribution: m.lebedev commentedComment #3
m.lebedev CreditAttribution: m.lebedev commentedComment #4
chrisgross CreditAttribution: chrisgross commentedRe-rolled patch for latest 3.3+dev
Comment #5
mikeker CreditAttribution: mikeker as a volunteer commentedWhen there's a solution offered, you should set the issue to Need review so that maintainers realize there's something to look at.
Thank you for your contributions. At this point, my focus is on getting a D8 version out the door so I won't be looking at D7 feature requests/additions for a while.
Comment #6
dflitner CreditAttribution: dflitner commented#4 works for me on BEF version 7.x-3.4. Thank you for the patch!
Comment #7
ykyuen CreditAttribution: ykyuen as a volunteer commented#4 works on BEF 7.x-3.6 too
Comment #8
Topplestack CreditAttribution: Topplestack commented#4 wouldn't apply for me, so I rerolled it for 3.x-dev
Comment #9
mibfire CreditAttribution: mibfire commentedI don't think label should be disabled. There should be an option if user wants to show it. Why do i have "Custom text of placeholder" option if label is always removed?
Comment #10
mibfire CreditAttribution: mibfire commentedI had to fix bef-placeholder_support-2560321-8.patch because it doesn't work if views is not saved after module is patched. This way all label will disappear because $options['more_options']['placeholder'] doesn't exist.
So this:
has to be
Patch is attached.
Comment #11
NWOM CreditAttribution: NWOM commentedIs there an advantage to using this patch over #2219249: Move label to input value or placeholder? I used that successfully for a few years on an older project. Today I was going to re-apply it on another project before running into the patch in this issue. After determining which one is better, we should mark one as a duplicate.
Comment #12
Neslee Canil PintoHi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Closing this as Closed(wont fix).
Comment #13
NWOM CreditAttribution: NWOM commentedFor a D7 fix, I suggest potentially using the Views Advanced Labels module. The only catch is that if you only want the advanced label to be shown as a placeholder, you need to clear the regular label field every time you save/alter the filter.