formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

[Question] How to collapse or expand the panel component based on data inside it?

Open ghost opened this issue 5 years ago • 1 comments

Hello everyone!

How to collapse or expand the panel component based on data inside it? If a user enters some data to components inside the panel component then it should expand, else collapse.

image

Best Regard.

ghost avatar Dec 18 '20 07:12 ghost

I guess we can set any component's property dynamically by using trigger event.

  1. use javascript trigger type & set result = data['yesComponnet']?true:false
  2. use property as action type & set the collapsible prop true/false

sureshyadaw437 avatar Jul 13 '22 06:07 sureshyadaw437

We're currently addressing a backlog of GitHub issues. Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

olgabann avatar Feb 07 '24 14:02 olgabann