Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2012 at 07:18 UTC
Updated:
28 Jun 2013 at 00:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
das-peter commentedComment #2
wiifmPatch is simple, applies cleanly, and works as expected. This is a must do.
Comment #3
aaronbaumanRecategorizing as a bug.
On a medium-size site, the large volume of tokens is actually causing a fatal memory error (256M exhausted).
Yes, the root cause is an issue in token, but it must be solved in webform.
This is a one-liner, let's get it in.
Comment #4
quicksketchThanks guys. Still RTBC, but it's not a bug in Webform. I'll put this in next time I'm going through the Webform queue.
Comment #5
quicksketchThis patch UI-wise doesn't make sense that we would have a collapsed fieldset with nothing but a link in it. We should append the token browser link to the existing description text. The token browser itself leaves a lot to be desired still (the fact that it doesn't have a scroll bar for instance), but that can be handled in the Token project.
Comment #6
aaronbaumanOK, here's an updated patch for theme_webform_token_help() to return a div instead of a fieldset.
I also added a selector class=webform-token-help to the div, since this patch changes the DOM.
Looks like this:

Comment #7
das-peter commentedMade a visual review. Looks good to me, I claim it's RTBC ;)
Comment #8
quicksketchFor consistency and aesthetics, I moved the token help out of a dedicated element and added it to the description text of the field that supports the tokens. This makes our settings page consistent with the configuration of individual components, which show the token help in the description text for each field. This approach also falls back to using the previous fieldset if the token dialog is not available.
Comment #9
quicksketchScreenshot of modified link location:

Comment #10
quicksketchThanks guys. Finally committed to 4.x.