We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Access State of Toggle Field in a Grid Field in Fluid Field using Field Group

How Do I?

stereoi123's avatar
stereoi123
31 posts
10 months ago
stereoi123's avatar stereoi123

Hello, I’m hoping this will make some sense. How can I access the state of a toggle field within a grid field within a field group within a Fluid Field? Example of my current code below:

{fluid_field}

  {fluid_field:my_field_group}

    {fields}

    {fluid_field:my_grid}

      {content}

        {content:my_Toggle} {if {content}}Yes!{/if} {/content:my_Toggle}

      {/content}

    {/fluid_field:my_grid}

    {/fields}

  {/fluid_field:my_field_group}

{/fluid_field}

Thank you!

       
Bryan's avatar
Bryan
14 posts
10 months ago
Bryan's avatar Bryan

I think you were very close! The toggle should just be use as a single tag, I did a quick test and this is working for me:

{fluid_field}
  {fluid_field:my_field_group}
    {fields}
        {fluid_field:my_grid}
            {content}
                {if {content:my_Toggle}}
                    Yes!
                {if:else}
                    No.
                {/if}
            {/content}
        {/fluid_field:my_grid}
    {/fields}
  {/fluid_field:my_field_group}
{/fluid_field}
👍 1
       
stereoi123's avatar
stereoi123
31 posts
10 months ago
stereoi123's avatar stereoi123

Thank you, Bryan! Worked great!!

💯 1
       
jessica101's avatar
jessica101
1 posts
9 months ago
jessica101's avatar jessica101

thank you

       
clarawarren's avatar
clarawarren
1 posts
9 months ago
clarawarren's avatar clarawarren

Gambling history spans centuries, evolving from ancient dice games to modern online platforms. For those interested in exploring themed slots, look here for Huangdi Yellow Emperor. This game blends historical elements with engaging gameplay, reflecting the rich heritage of gambling through innovative design and cultural references.

       
JeanWoo's avatar
JeanWoo
1 posts
8 months ago
JeanWoo's avatar JeanWoo

You can access the state of the toggle field in the grid by checking the condition as you did in the current code. Your code is on point, just make sure that the conditional syntax is applied correctly to the “my_Toggle” field. Once done, relax and play some fun io games for fun!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.