# Conditional fields?

**URL:** <https://forum.getkirby.com/t/conditional-fields/12756>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 7, 2019, 5:50pm UTC](https://forum.getkirby.com/t/conditional-fields/12756 "2019-02-07T17:50:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oli1](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/oli1/32/14419_2.png) [@Oli1](https://forum.getkirby.com/u/Oli1)\
**Post date:** [February 7, 2019, 5:50pm UTC](https://forum.getkirby.com/t/conditional-fields/12756/1 "2019-02-07T17:50:42Z")

</div>

Hi everybody,

are in Kirby 3 conditional fields included? I have used the fieldtoggle Plugin before but it doesn’t seem to work in K3. Maybe this is now part of the core?

For example, in Joomla it’s possible to declare a field with something like this:

`showon="foo:1[AND]baz:0"`

Means, this field only appears when foo has a value of 0 and baz has a value of 0. This works also with other examples like `foo!:1` or similar.

Cheers

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [February 7, 2019, 5:52pm UTC](https://forum.getkirby.com/t/conditional-fields/12756/2 "2019-02-07T17:52:46Z")

</div>

No, there isnt a native way to do this, just have to wait for the plugin to be ported over. The way plugins work has totally changed with K3, so just throwing a K2 plugin in there wont work at all.

---

<div class="post-metadata">

**Author:** ![Oli1](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/oli1/32/14419_2.png) [@Oli1](https://forum.getkirby.com/u/Oli1)\
**Post date:** [February 7, 2019, 6:04pm UTC](https://forum.getkirby.com/t/conditional-fields/12756/3 "2019-02-07T18:04:25Z")

</div>

That’s currently a problem to use K3. Most Plugins only work for K2 and I doesn’t have the personal skills to adapt them. Is there something like a legacy mode or similar?

I also have problems cause of the “sortable plugin” and the “tablex field”. Maybe they were ported some time. I hope 🙂

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [February 7, 2019, 6:09pm UTC](https://forum.getkirby.com/t/conditional-fields/12756/4 "2019-02-07T18:09:56Z")

</div>

It can be worth looking at the branches on the github repo for the plugin - there might be a kirby 3 branch, perhaps they just havent shouted about it yet.

But for those specific plugins, i think you are out of luck for the moment.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 7, 2019, 10:53pm UTC](https://forum.getkirby.com/t/conditional-fields/12756/5 "2019-02-07T22:53:56Z")

</div>

Many plugins have already been ported, but the two you mentioned above haven’t been.

The tablex plugin won’t be ported any time soon, it seems.

As regards the sortable plugin, it depends on your use case whether or not you will actually need it in Kirby 3.

Conditional fields: That’s a request many people have. I think there will be a plugin sooner or later if it’s not included in the core in the future. See [https://github.com/getkirby/ideas/issues/64](https://github.com/getkirby/ideas/issues/64)

---

<div class="post-metadata">

**Author:** ![thguenther](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thguenther/32/16708_2.png) [@thguenther](https://forum.getkirby.com/u/thguenther)\
**Post date:** [February 8, 2019, 5:57am UTC](https://forum.getkirby.com/t/conditional-fields/12756/6 "2019-02-08T05:57:02Z")

</div>

We also had some discussions about this in the plugins repository: [https://github.com/getkirby/plugins/issues/34#issuecomment-410054182](https://github.com/getkirby/plugins/issues/34#issuecomment-410054182)

Adding a `condition` property to fields (and maybe tabs etc.) would be awesome. I think this has to be done in the core, though. I tried porting the fieldtoggle plugin but it was not possible to show/hide other fields (at least for me).

---

<div class="post-metadata">

**Author:** ![Oli1](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/oli1/32/14419_2.png) [@Oli1](https://forum.getkirby.com/u/Oli1)\
**Post date:** [February 8, 2019, 9:50am UTC](https://forum.getkirby.com/t/conditional-fields/12756/7 "2019-02-08T09:50:14Z")

</div>

Would be great to see that in the core. In my opinion it’s a really useful thing to show/hide fields and options depending on other fields.

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [February 8, 2019, 3:32pm UTC](https://forum.getkirby.com/t/conditional-fields/12756/8 "2019-02-08T15:32:05Z")

</div>

Add it to the [ideas repo](https://github.com/getkirby/ideas/issues) if it’s not there already (got a feeling it might be) and you may just get your wish (I would love this too, personally)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 8, 2019, 3:50pm UTC](https://forum.getkirby.com/t/conditional-fields/12756/9 "2019-02-08T15:50:06Z")

</div>

> [@jimbobrjames](#):
>
> Add it to the [ideas repo](https://github.com/getkirby/ideas/issues) if it’s not there already

It’s already there, see link above.
