Conditional fields functionality

Created on 19 March 2023, over 1 year ago
Updated 21 March 2023, over 1 year ago

I heard in one of the videos on the project page that this module can as well replace some contrib modules like 'conditional_fields' so I decided to try it out but I got bewildered and couldn't figure how to use the module.

I have a paragraph type with 'field1' and 'field2'. 'field1' is a select list with values 'value1' and 'value2'. I referenced this paragraph type on a user account and I want 'field2' hidden when the user edit form loads and when you select 'value2' from 'field1' then 'field2' loads. That is, 'field2' is dependent on 'field1' and will only show up when 'value2' is selected from 'field1'.

As simple as this should be I totally cannot figure how to achieve that with ECA.

If you can give me basic steps to achieve this I will be glad.

Thank you.

💬 Support request
Status

Fixed

Version

1.1

Component

User interface

Created by

🇳🇬Nigeria chike Nigeria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @chike
  • 🇩🇪Germany jurgenhaas Gottmadingen

    From our own experience, this could probably be done with the ECA Form sub-module by setting the states attributes accordingly. But we don't really recommend it and don't use it ourselves.

    Compared to the UI of the conditional_fields module, this is so much more tailored towards the task to set conditions and states for fields in forms, that we encourage the usage of that module. We had thought about improved support for this in ECA, but that would mainly rebuild functionality, which is already there so that there is no reason to do so.

  • 🇩🇪Germany mxh Offenburg

    From our own experience, this could probably be done with the ECA Form sub-module by setting the states attributes accordingly. But we don't really recommend it and don't use it ourselves.

    Looks like we need some clarification on the current state of ECA components. Created a follow-up for that: 🌱 Offering to maintain eca_form within its own contrib project Closed: works as designed

  • 🇳🇬Nigeria chike Nigeria

    Thank you @jurgenhaas for the clarification. conditional_fields sure does a good job and it is quite mature, I am continuing with it.

  • Status changed to Fixed over 1 year ago
  • 🇩🇪Germany jurgenhaas Gottmadingen
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024