set external data value

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
pwong
Posts: 2
Joined: Tue Aug 12, 2014

12 Aug 2014

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'});

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

13 Aug 2014

Hello,

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

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

pwong
Posts: 2
Joined: Tue Aug 12, 2014

15 Aug 2014

Thanks! That works!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests