Navigation überspringen

[Gelöst] Data in conditional fields is not stored

This support ticket is created vor 1 Monat. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Dieses Thema enthält 3 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von marcB-6 vor 4 Wochen, 1 Tag.

Assistiert von: Christopher Amirian.

Author
Artikel
#2816377

Hi guys!

I'm adding a conditional section on a website, i do such with a checkbox (show section). The fields related to that section are set conditional as well.

When 'show section == TRUE', than add content and than save. The data is stored and visible in the backend. When i than change 'show section == FALSE', than save, than change back to 'Show section == TRUE', the data is not there anymore. This is different from what it used to be and i'm curious if this is an issue or new functionality and how to avoid it. It's very unwanted behaviour (although i do understand the theoratical idea behind it, in practice it works different).

Hope you can help!
Marc

#2816499

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Hi Marc,

For conditionals, hidden items will not be preserved by default in Toolset. Would you please give u more detailed context about the page you used the conditional?

Is it inside a form? Or a normal view? Give us more detailed information and all the ins and outs so that we may understand the situation.

thanks.

#2816514

Hi Christopher,
it's fairly simple and let me explain:
- I have a CTA section in a page template that can be shown or hidden using a checkbox 'Show CTA'.
- In the frontend we're showing/hiding the HTML based on a condition in the content template and that is working perfectly.
- In the backend we're showing/hiding the fields based on a condition in the individual fields, that is also largely working as expected.

However, i run into something that feels like an issue while using it. It happens in the following usecase:
- I set 'Show CTA' to true, fill the fields 'CTA title' and 'CTA text' and click publish. The data is stored as expected.
- I now set 'Show CTA' to false (the fields are not visible anymore), and click update.
- I now set 'Show CTA' again to true. The fields are empty. That is unexpected behaviour.

This is not how it used to work in Toolset. And therefore i'm not sure if i'm looking at an issue or that it is an enhancement, coming from a recent update.

Can you tell me?

#2816549

Christopher Amirian
Unterstützer

Sprachen: Englisch (English )

Ok as I did not test that way I will need you to create a similar scenario on this clean installation:

versteckter Link

I purposefully kept the previous version of Toolset blocks and Types before this latest update.

So if there is a difference in behavior, we will know.

Please create a page and do something similar.

I will check the behavior there.

Thanks.

#2816900

I created a post and i see behaviour is as in website. So apparently it's no issue. But it is definitely different than it was once and it is unhandy in a way if you ask me.
Thanks for your help Christopher!