Page 1 of 1

set external data value

Posted: 12 Aug 2014
by pwong
I am using the following function but if "item1" has an "&" char, it won't work. Any suggestion?

fd.field('ExternalData')
.value({key: '__bg40003300', text: 'Item 1'});

Re: set external data value

Posted: 13 Aug 2014
by Dmitry Kozlov
Hello,

You should replace & with the appropriate html entity (&). Example:

fd.field('ExternalData').value({key: '__bg40001300', text: 'Item 1 &'});

Re: set external data value

Posted: 15 Aug 2014
by pwong
Thanks! That works!