Using check box to show/hide a text field,after adding a workflow field (the contrib module,not the core module),the click action doesn't work ,text field keep showing.

Hide the workflow field in form display,the show/hide effect works again.

Drupal version 10.0.9.

Thanks in advanced for any suggections.

CommentFileSizeAuthor
#3 conditional_fields-workflow.patch1.18 KBgrimal

Comments

marcolam created an issue. See original summary.

grimal’s picture

Same problem here after an upgrade to Conditional Fields 4.0.0-alpha3 and Workflow 1.7 (Drupal 9.5.9).

The issue occurs only with the widget "Workflow transition form".

grimal’s picture

StatusFileSize
new1.18 KB

I've found the problem, ConditionalFieldsElementAlterHelper::loadDependencies() make a cache of the dependencies without a key, so it returns always the first result (the workflow form dependencies in this case).

marcolam’s picture

patched and it works great,thank you for your efforts!

smulvih2’s picture

Status: Active » Reviewed & tested by the community

I had this same issue with workflow enabled for a content type. Patch #3 fixed the issue, using D10 on 4.0.0-alpha3.

  • heddn committed b0efe805 on 4.x authored by grimal
    Issue #3369923 by grimal, smulvih2, heddn: show/hide field don't work...
heddn’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contributions.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.