strange data (eg. __NM_AMP__) showing in form field

Hi,

​I have a grid and there is a virtual field. This field I have created an ajax event when onclick the data will auto display into another form I created.

The following is the code I written in the ajax event:
​[notes] = {notes}
​sc_redir(form1);

​under form1 > onLoad event, I entered the following code:
​{notes}=[notes];

​When the grid contains data with some special char (eg. &), the data in form1 will show “__NM_AMP__​”. For +, it will show “NM_PLUS”.

​Can someone please kindly advise? Thanks.

Hi,

​I tried to use the following but all cannot works:
sc_decode​({notes})
htmlentities([LEFT][SIZE=13px]{notes}[/SIZE][/LEFT])
html_entity_decode([LEFT][SIZE=13px]{notes}[/SIZE][/LEFT])
htmlspecialchars([LEFT][SIZE=13px]{notes}[/SIZE][/LEFT])
htmlspecialchars_decode([LEFT][SIZE=13px]{notes}[/SIZE][/LEFT])

Can someone please kindly help? Thanks.

Hi,

Just to check if anyone can kindly advise on this?

Not sure why there are special character appearing when I used the above method?