Closed (works as designed)
Project:
Webform Hints
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2015 at 17:58 UTC
Updated:
24 Feb 2015 at 12:45 UTC
Jump to comment: Most recent


Comments
Comment #1
guschilds commentedvibrasphere,
Webform Hints only works with components that come with the Webform module unless custom code is added. This is because contributed modules that add Webform components often work in very different ways and it is impossible to account for all of them. For this reason, a couple of hooks have been added (see webform_hints.api.php for more info).
Of those hooks,
hook_webform_hints_fieldtypes_alter()can't be used to addname_elementcomponents because their array structure is unlike core Webform components and the module will not handle them properly. Instead, we must usehook_webform_hints_element_alter(). I have achieved what you desire using the following code (in a custom module):This will use each field's label as its placeholder instead of printing the label under each field.
Please give it a shot and let us know how it goes. Thanks!
Comment #2
matas.k commentedYou should commit this to dev version.
Comment #3
guschilds commentedThanks for letting us know that worked for you. For now we're keeping the module simple and only supporting Webform components. We may reconsider if enough interest is shown by the community.