Skip to content
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

Support simple conditional logic #59

Open
1 of 3 tasks
sergei-maertens opened this issue Jan 24, 2025 · 0 comments · Fixed by #54
Open
1 of 3 tasks

Support simple conditional logic #59

sergei-maertens opened this issue Jan 24, 2025 · 0 comments · Fixed by #54
Assignees

Comments

@sergei-maertens
Copy link
Member

sergei-maertens commented Jan 24, 2025

Formio supports simple conditional logic in the form of:

{
  "conditional": {
    "show": true,
    "when": "someOtherComponent",
    "eq": "someValue"
  }
}

which changes the visibility of a component depending on the value of the other component it references.

Notable challenges to take into account:

  • Ensure that this works with/within layout components like fieldset and columns
  • Implement the clearOnHide behaviour for components that get hidden. Take into account components that are hidden because their parent is hidden.
  • Ensure the behaviour in editgrid is consistent with the Formio reference (there are some odd mechanisms to refer to components in/outside of the editgrid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

1 participant