Closed jaffars closed 6 years ago
Thanks Jaffar. We already fixed this in v5 by removing these 2 lines of code:
MobileControls/Grid.js
if(val.toString().length > 100) val = val.toString().substr(0,100)+"...";
Please do that and see if it fixes the issue in v4
Tested in CU9 and its working as expected
Hi Paul,
I did some debugging and identified the scenario.
-AdditionalStaffField contains an HTML value, It works fine in desktop
Code causing the Issue:- Grid.js - Mobile in function - Add Columns in the below highlighted lines
m_cols.push({ name: field.Name, onformat: function (val) { if (val == null || val == "null") { return ""; } else { if(val.toString().length > 100) val = val.toString().substr(0,100)+"..."; if(field.CustomControl == "NotesBox") val = val.replace(/\<br>/g, '\r\n'); return val; } } });
The Val is getting stripped to 100 character so the HTML value is cutting off and causing the Issue.Attached the screenshot of the issue