Dashboard Indicator widget: Adding a $ causing a failure to save

588
2
02-15-2022 08:56 AM
brumm1dj
New Contributor II

Our Portal Dashboards are failing to save when we add a $ to an indicator widget ${value}. This is new behavior, within the last month and we are not sure what is causing it.  Adding the $ through the Prefix works as expected and we can save the changes. Its only when we add the $ manually does it bomb out on save. This behavior is the same with new and existing dashboards. I have tried different browsers, machines, accounts, reboots, checked for patches. The errors only appear in the browser. There is nothing in the Portal logs which are set at DEBUG. 

###ERROR MESSAGE  IN BROWSER####

SyntaxError: Unexpected token < in JSON at position 0 SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)

 

brumm1dj_0-1644943768840.png

 

0 Kudos
2 Replies
JayantaPoddar
MVP Esteemed Contributor

Instead of adding the $ sign as Text, add it as a prefix (Value Formatting > Prefix).

JayantaPoddar_0-1644949386348.png

 



Think Location
0 Kudos
brumm1dj
New Contributor II

The prefix works as expected and we can save our changes. its only when we manually add the $ sign into the Text boxes is there an issue. The real mystery is what changed to make this an issue. It was working fine for the last 3 years and continues to work in our other environments.