Jump to content

Options fieldtype and inputfield dependencies with multiple conditions


Henrik
 Share

Recommended Posts

In the Admin I use a "fieldtype options radio button (single value)" to display different fields depending on which radio button is clicked.

My issue in short is, that I get it working with one radio button. But not if I use two which are nested.

Let me explain:

This is the fieldtype setup for the radio button:

post-3713-0-35669800-1458657521_thumb.pn

If I want a field to only display if the 1. radio button is clicked I specify his "show if - behavior" like this:

post-3713-0-19960200-1458658546_thumb.pn

This works like a charme. No question.

But if I add a second radio button (pair) with the following setup:

post-3713-0-76450900-1458660580_thumb.pn

... which only shows if the 1. of the first radio button (pair) is clicked,

like this:

post-3713-0-43128400-1458659871_thumb.pn

I get in trouble ... Btw this second radio button (pair) should allow me again to display different fields dependent on which radio button is clicked. Lets say I want to display a field only if the 2. of the second radio button pair is clicked - and therefore the 1. of the first radio button pair has to be clicked before, I thought I had to do this:

post-3713-0-59303200-1458661994_thumb.pn

But this doesn't work! The field is always displayed, also if I click the 1. of the second radio button pair.

So how can I assign these multiple conditions correctly?

Thank you for any hint on this :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...