Question
Australian Bureau of Statistics
AU
Last activity: 10 Sep 2019 15:29 EDT
Text input with a string value "space" in converted into html code"
Issue:
In a form , it has Text Inputs to take user input . If user enters "space"and submit (save) , when the record is displayed, the value is displayed as " "
If you edit the record, the same Text Inputs displays the value as "space"
We use Pega platform 7.3.1 , we upgraded from 7.2 . We were not aware of this bug in 7.2 so we cannot confirm it worked or not in earlier verison
All Text Input in pega web has the same issue. Please advise if you prefer a product defect ticket or a quick fix can be applied to address the issue
Screenshots
Enter space in the input box and save
Open the record, the value space becomes html code. But if you go to edit the record, the value is displayed as "space".
***Updated by moderator: Lochan to update platform capability***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Australian Bureau of Statistics
AU
found the root cause. it is the text input's presentation tab - read only value was set to "Localize Property Value"
After I changed it to "Property value", space will be displayed as space
Australian Bureau of Statistics
AU
When the record is opened, the value is displayed as HTML code
Pegasystems Inc.
FR
Hello,
Is it something you having with an Out-Of-The-Box configuration or is it just with your upgraded configuration?
Can you have a quick try from scratch? I don't have that issue myself on Pega 7.3.1
Pegasystems Inc.
US
Can you try having these fields in Free Form Layout instead of Dynamic Layout?.
CollabPartnerz
IN
can you try with replace all function.
-
Pravin Magar Matthew Osborn Thomas Ware
Pegasystems Inc.
IN
HI,
Can you try replacing text area with RTE?
Also,you can write a function with the below code and call the function by passing the string as parameter just before the display:
return str.replaceAll(" ","space");
Australian Bureau of Statistics
AU
In clipboard, the value is space , in GUI (IE and Chrome) it is displayed as  
Therefore the replaceAll function may not help. The browser some how convert space into  
-
alex hetherington Jacek Kisilewicz
Australian Bureau of Statistics
AU
In devTool , the response doc reveals the value of address line 1 to be as
&nbsp
so the value is already converted from space to html code from server side. Not sure where it is doing it, is there a config in pega that find match in string value "space" and convert it into equivalent html code ?
This bug does not occur if the value contains space and any other string such as
"space space space", "space abd space", "aa space aa".
Accepted Solution
Australian Bureau of Statistics
AU
found the root cause. it is the text input's presentation tab - read only value was set to "Localize Property Value"
After I changed it to "Property value", space will be displayed as space
Pegasystems Inc.
IN
Thanks so much for updating your post with the solution! I have marked this post as Answered.
-
Dawn Brown Matt Healy
Tata Consultancy Services
GB