Question


Virtusa
US
Last activity: 28 Feb 2017 15:54 EST
How to prevent section collapsing when there are missing required properties' values?
Hi guys. The user has a screen where are multiple collapsed sections and each section has a set of required fields. Sometimes user collapse the section ignoring missing values and at the end, when the form is submitted, the error about missing values occurs and user should open one by one section to find where the message is coming from. Is there the way to prevent to collapse such section on the first place?
Thanks,
Larisa
***Updated by Moderator: Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


PEG
US
In the 7.2.2 release, if there are errors in collapsed sections, there will be some visual error indicator on the section/tab that indicates there is an error contained therein.


Virtusa
US
We have 7.2.1 and there is no error.


Pegasystems Inc.
IN
Hi Larisa,
Since we do not have the indicator error in 7.2.1, could you try add a "Expand/Collapse" event on the click of the submit button of the form?
If you have this additional event, all the collapsible sections get expanded. Please note this will expand all sections not just the sections with the error. But user will be able to see all the error fields.
Thank you.
Regards,
Evita.


Virtusa
US
Hi Evita. I tried to implement what you advised, however the sections didn't expand, just message "Please correct flagged fields before submitting the form!" appear on the screen. I saved the section pyCaseActionAreaButtons into the application RS and added the Action Expend/Collapse to pySubmitLabel buttons. I traced it, the stream is loading, however it didn't expand all sections. I attached the screen for you. Let me know if I need to change anything else. Thanks


Pegasystems Inc.
IN
Hi Larisa,
Could you send a screenshot of the Actions tab in the configuration of the pySubmitLabel buttons.
Regards,
Evita.


Virtusa
US
It is just "Finish Assignment".


Pegasystems Inc.
IN
Hi Larisa,
Are the collapsible layouts present as a section include in the main section? Or are they layouts?
Regards,
Evita.


Virtusa
US
Hi Evita. The outer layer is Layout Group type Accordion and inside is a set of layouts and each one has a section.
Thanks,
Larisa


Pegasystems Inc.
IN
Hi Larisa,
Could you add a "Refresh-This Section" action to the "Click" event of the Submit button and check. This is in addition to the "Expand/Collapse" action.
Regards,
Evita.


Virtusa
US
Hi Evita. The Refresh didn't work either. I think the issue relates to Accordion section type. Any other thoughts?
Thanks,
Larisa


Pegasystems Inc.
IN
Hi Larisa,
I came across the SA : https://community.pega.com/support/support-articles/expand-collapse-functionality-section-header-does-not-work
which mentions that it is the expected design for the Accordion layout. So could you replace with dynamic layouts and test?
Regards,
Evita.


Virtusa
US
Thank you Evita. I'll pass it to the team.
Regards,
Larisa