HeadHodge
Active member
Hi Everyone,
I'm new to xen coding and need some desperate help for a project I'm working on.
I've got what I want it to do 90% figured out. But I JUST CAN'T figure out the last part.
For a new forum I created in the Node Tree in the AdminCP, I added the following to the Header Template Html (from the AdminCP):
{xen:raw $thread.customFields.1.fields.ReviewForm_Effect.field_value}
<br />
{xen:raw $thread.customFields.1.fields.ReviewForm_Effect.fieldChoices.Noticeable_Effect}
<br /><br />
They both work fine.
The field_value displays in the header as "Noticeable_Effect"
The Noticeable_Effect displays in the header as "Warning: Product has Very Noticeable Effects!"
But for the life of me, I simply can't figure out how to do:
{xen:raw $thread.customFields.1.fields.ReviewForm_Effect.fieldChoices[{$thread.customFields.1.fields.ReviewForm_Effect.field_value}}]}
No matter how many ways I try, when I try to save my change with this in it, I get a "SYNTAX ERROR" and I'm not able save the Header Template, let alone get it to work.
Any help would be VERY VERY VERY MUCH APPRECIATED
Thanks
HeadHodge
I'm new to xen coding and need some desperate help for a project I'm working on.
I've got what I want it to do 90% figured out. But I JUST CAN'T figure out the last part.
For a new forum I created in the Node Tree in the AdminCP, I added the following to the Header Template Html (from the AdminCP):
{xen:raw $thread.customFields.1.fields.ReviewForm_Effect.field_value}
<br />
{xen:raw $thread.customFields.1.fields.ReviewForm_Effect.fieldChoices.Noticeable_Effect}
<br /><br />
They both work fine.
The field_value displays in the header as "Noticeable_Effect"
The Noticeable_Effect displays in the header as "Warning: Product has Very Noticeable Effects!"
But for the life of me, I simply can't figure out how to do:
{xen:raw $thread.customFields.1.fields.ReviewForm_Effect.fieldChoices[{$thread.customFields.1.fields.ReviewForm_Effect.field_value}}]}
No matter how many ways I try, when I try to save my change with this in it, I get a "SYNTAX ERROR" and I'm not able save the Header Template, let alone get it to work.
Any help would be VERY VERY VERY MUCH APPRECIATED
Thanks
HeadHodge