Text "no value" is displayed when there is no value in a field in Pega 24.1

After upgrade to 24.1, we are getting the text “no value” is displayed along with – when no value is present.

For example:-

--no value.png

A new span is added in the DOM

<span class="no-value-span">no value</span>

We can fix it with a simple CSS update by setting class no-value-span to display:none.
But is there any better solution to fix it globally

@AbikashSharma - For accessibility purpose added no value span tag which will be read by screen reader and that value should not be seen in UI and should only show --. Some custom CSS styles might be overridden and showing the value. In Infinity 24.1 its not showing “no value”. Can you verify the styles linked up with that span.

Thank you.

@Priyanka Boga How do we fix this for automation ? Do we need to change our scripts for 24.1 which were working fine in 8.8.

@Shayi777 - If those styles are not coming from the custom implementation then it could be a issue and have to reach out to GCS by spinning off the INC ticket.

Thank you.

@Priyanka Boga hello,

no value is displayed in email(both in UI and generated email) if the property is empty. How to solve this? Thanks in advance

@KishoreR7037 - Need to add below style in the correspondence rule to not to display that in email. In portal Pega has added styles to not to display it and those styles wont be passed to email that is why issue is seen.

<style>

.no-value-span{

display:none !important;

}

</style>

@Priyanka Boga Hello! Thanks for sharing the information. I was wondering if there’s any official or recommended way to replace the “no value” text with a custom value (e.g. “n.a.”) instead of just removing it? Specifically, when we are not on 24.1 version.
Appreciate any insights!

@YingyuG16828828 - No we don’t have any way to customize this “no value” . The value is coming from OOTB js files and cannot be customized.

Can try with creating a field value for no value text.

Thank you.

@Priyanka Boga Thank you for your response. Instead of adding it in every correspondence rule, is there any other way to solve this? Like having this code in userworkform?

@Shayi777 , How did you resolve this issue for automation ?Did you change the scripts ? Please let us know .We have same issue and trying to resolve .