How to create Field Collapse / Expand

Syed Hussaini
Kilo Contributor

Hi Folks

Need help with the following, your inputs are appreciated.

I have a requirement on the issue form where the fields need to user expandable and collapsible. There are more than 20 fields in one section and the fields need to be in group of five with "+" symbol for each group, The user should be able to click on the + and five fields expand and collapse.

Thanks

Syed

1 ACCEPTED SOLUTION

Hello Syed,



If you use UI policy, no script is required.



Select the condition as, <<Checkbox>> is true.


Also select, 'Reverse if False checkbox','On Load' true. Now, save it.




In the UI Policy Action section: Select the fields and their options (In this case, visible would be true).



You can check any OOB UI Policy for your reference.



Mark the reply as helpful/correct if it answers your query.



Thanks,


Subhankar


View solution in original post

5 REPLIES 5

LearnerSubho
Mega Guru

Hello Syed,



You can achieve this by UI Policy. You need to create some dependency.


e.g. suppose there is a checkbox (name as expand). When user checks it, 5 fields will be visible or you can configure something else such as when a field is filled, 5 new fields will be visible.



Hope, this would help you.



Thanks,


Subhankar


Hi Saha,



I like the check box option for which I can name Hide/Show. Upon user action specific fields would hide and show, do you have a sample script? I will try it out.



Thanks


Syed


Hello Syed,



If you use UI policy, no script is required.



Select the condition as, <<Checkbox>> is true.


Also select, 'Reverse if False checkbox','On Load' true. Now, save it.




In the UI Policy Action section: Select the fields and their options (In this case, visible would be true).



You can check any OOB UI Policy for your reference.



Mark the reply as helpful/correct if it answers your query.



Thanks,


Subhankar


Worked as expected.. Thanks!