Skip to content

Conditional field UI returning values for the wrong field #2103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
murtaugh opened this issue May 31, 2022 · 2 comments · Fixed by #2254
Closed

Conditional field UI returning values for the wrong field #2103

murtaugh opened this issue May 31, 2022 · 2 comments · Fixed by #2254

Comments

@murtaugh
Copy link
Contributor

murtaugh commented May 31, 2022

I'm trying to update a field that has existing conditions. I want to switch it from "all" to "any", using additional values from the same Selectable Buttons field.

The values in the second instance of the button field are pulling from the wrong field.

image

The "theme" value is from a completely different Selectable Buttons field.

To test, I went into a "new field" form, and tried creating a new conditional using the same field, and I'm getting the same wrong results:

image

I can update the existing condition successfully, but can't use the existing field in a new condition.

(EE 6.3.4)

@murtaugh
Copy link
Contributor Author

murtaugh commented Jun 1, 2022

Brief update on this: I tried using "contains" in the second column, manually entering the item I was looking for in the "Type {widget_type}" field, which doesn't work:

image

That said, I tried again, using the value I'm looking for, which does work.

image

@jcogs-design
Copy link
Contributor

Just a bump on this - I've got the same issue (6.3.5) and have found that if you add the conditional you initially get the wrong drop-down values as noted in the original post - however if you then save the field and do the update conditional logic thing, the field reloads and when the field reloads you get the correct fields in the dropdown.
HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants