Gravity Forms Placeholder Add-On
This plugin adds Placeholder support to gravity forms
The facts
- Rating
- 4.3★ from 12
- Active installs
- 1k+
- Price
- Free
- Last updated
- 28 Nov 2017
- Added
- Jan 2014
- Requires WP
- 3.6
- Tested up to
- WP 3.9.40
- Downloads
- 21,287
Our analysis
AI-assistedGravity Forms Placeholder Add-On is a WordPress plugin that adds placeholder support to Gravity Forms fields. It allows you to use placeholders by adding a specific class to your form fields, which hides the label and uses it as the placeholder text. Additionally, it provides a workaround for dropdown fields by prepending a placeholder option that is selected and disabled.
This plugin is suitable for users of Gravity Forms who want to enhance their forms with placeholder functionality, particularly those who need to implement placeholders in dropdown fields where native support is lacking.
Best for: Users of Gravity Forms looking to improve form usability with placeholders.
What it does well
- ✓Adds placeholder support for Gravity Forms fields
- ✓Includes support for dropdown fields
- ✓Easy to implement with a simple class addition
Where it falls short
- •Limited features; future updates are uncertain
- •Requires Javascript and jQuery to function
Verdict
This plugin offers a straightforward solution for adding placeholders to Gravity Forms, though its feature set is currently limited.
From the developer
phpmypython's own description of Gravity Forms Placeholder Add-On, lightly tidied.
NOTE
The plugin is based off of the placeholder support add-on initially developed by neojp and can be found at the link below. The main
difference being that we added support for drop-down fields.
https://wordpress.org/plugins/gravity-forms-placeholders/
This plugin gives support for placeholders to the Gravity Forms WordPress Plugin.
In order to use the plugin you need only add the class of \”gf-add-placeholder\” to any of the fields you wish to have a placeholder on.
The plugin will take the text of the label and then hide said label and apply the text from the label to the placeholder attribute.
If you would like to to use this on your entire form then you need only add the \”gf-add-placeholder\” class to the form itself and then it will be applied to all the form elements.
DROPDOWN FIELDS
As im sure you know, the select field in HTML does not have a native placeholder attribute. Now you can do what some do and just add an option that says \”please select\” but that is not (in my opinion) the best way.
This plugin does the following to give a placeholder LIKE support to the select fields
It takes and hides the label just like it does with the other fields but then it takes the text from that label and prepends an option to the select field that contains the text from the label as it\’s value and it also adds a selected and disabled attribute to the option. Ensuring that it is selected and also ensuring that once a user clicks into the field that they wont be able to select and submit with that option.
In the future i fully intend on adding features that will allow the hiding of labels to be optional and the feature for you to be able to manually set your placeholder text as opposed to it just pulling in the label text.
The plugin requires Javascript and Jquery to function and is tested up to WordPress version 3.8.1 and Gravity Forms Version 1.8
ENJOY! and happy coding 🙂