I have a requirement to show information banner text where i set the message into a field based on conditions. I set the value to the field in pre processing data transform before the assignment. I would like to show a banner with the message when user is in that assignment. How to achieve this. I have read many articles where banner component is to be added and then should be used. But i see pega OOTB displays banner without adding or importing the component.
If you’re on 25.1 onwards, then use DynamicText to display the banner like information.
yes. I am using 25.1 but dynamic text just shows the text as such in the form. I am looking for something where i wanted to display as information/warning/critical banner text which comes up whenever there is validation error/any announcements etc.
- Error - OOTB displays the validation failures by default on the form.
- Warning - You can display the field wanrings in Pega 25 version, however it will be shown beneath the field.
- Information - The information can be shown as part of the Additional information at each Property level.
However, if you looking for banner, then custom DX component required.
Thanks for the explanation. But here in the below screenshot. Pega displays this banner OOTB. I tried searching for the component in my application but i didn’t find. I wanted to know how this is still shown from Pega. Below is i am getting whenever i add a dynamic text rule in instructions field in form view. I am looking for similar one.
You may want to look at below post where we discussed on the Custom DX component which is provided in the story book and also an enhanced version of it.
Also this one as well,
If its a strict requirement of this type of banner view, then assess the above posts and ensure that while you work with components, you need to take care of below aspects,
- Security
- Accessibility
- Maintenance
- Re-usability
- UI Guidelines
There is one more less preferred, dirty option, but you may want to give it a try. I won’t suggest it but had the Dynamic Text rule supported dynamic HTML content powered from Correspondence, i would have not thought about this.
It goes like this. You can go to your flow and on the assignment you will have Instructions for user option where you can provide a field value of type pyInstructions. Try to put your HTML code there for the banner display directly there. Of course get the styling right and keep it simple and display your instructions there. May be using a data page passing some parameters and fetch the instructions similar to what we do in the banner component.
Hope this helps
Regards
JC



