How to open form with close section by default in Service Operation workspace

Alon Grod
Tera Expert

Hi,

In SOW Incident form, we have the 'Incident' Section OOB. We also have the option to either close/open the section using the arrow:

Screenshot 2024-06-04 at 7.46.31.png


Is there any change using onLoad client script to make this section to be close (not hidden just close) if some condition is met?

1 REPLY 1

thomastopuz
Tera Contributor

Did you find a solution for this?
I tried with the client script:

api.data.formController.form.sections.forEach(s=>s.expanded=true)

This always opens the form with all the sections closed but the problem is that then they cannot be opened again, they are permanently closed.