Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2012 at 03:00 UTC
Updated:
2 Nov 2012 at 19:04 UTC
Jump to comment: Most recent file
As reported by @chertzog in #1612130: Conditional Field Tokens:
It also looks like fields contained in fieldsets have an issue with their label. I thought it might be because of the way I am manually calling things, but then i tried this in an email, and it did the same.
I have [submission:values:fieldset_key:field_a_key:nolabel] in the body of an email. When i submit a form, the token gets replaced, but the label is still rendered.
I've already confirmed this problem, exactly as described.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_nested_tokens.patch | 939 bytes | quicksketch |
Comments
Comment #1
quicksketchComment #2
quicksketchThanks @chertzog for pointing out this problem. Looks like our token-handling code was using a comparison that could never possibly evaluate correctly (misplaced parathesis). This problem is fixed with the attached patch, which I've committed to 4.x.
Comment #3
chertzogThanks. I've tested, and everything seems to be working.
Comment #5
glynster commentedI am trying to get this to work with no luck at all.
I am using the latest dev version 4. I have a fieldset and inside of that 3 seperate selectbox options inside. I am also using a custom mail tpl. All works as I need it as far as theming, html etc. However I cannot get the fieldset nor the selectbox options to show up in the email. If I use this token: [submission:values:fieldset] I get a fieldset html tag with an empty div inside. If I use [submission:values:fieldset:nolabel] the fieldset is not printed at all. If I then try and print the selectbox options with [submission:values:fieldset:selectbox] - nothing, [submission:values:fieldset:selectbox:nolabel] no luck either.
I have these options turned on in the webform emails tab the form is set to default as I have not touched this to make sure the email tpl is picked up.
Same problem with: [submission:values] I get a fieldset html tag with an empty div inside.
Any advice would be greatly appreciated.
Comment #6
firfin commented@Glynster Sorry, but you seem to have a different issue than what this topic is about.
Please don't hijack issues. It only obfuscates solutions and makes searching less effective.
Search the issue queue for similar problems. Check your versions (update them if neccessary). Try the dev versions of related modules. Check that other tokens are working. Double check you are using the correct field keys (they are not really called 'selectbox' right?? )
If your problems still persists, create a new issue. Looking at your description I would suggest something like "tokens from fields in fieldsets dont show up" Create a minimal testcase. Document what you have tried, etc.
Comment #7
glynster commentedNo problems, never trying to hijack, not my intention.
Actually was an issue related to our development code.
So sorry for the confusion my issue is no more :)