Clear External Data field

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
gleegeld
Posts: 13
Joined: Tue Jun 30, 2015

05 Oct 2015

Hello,

How do I clear an External Data field?

I tried setting the field to text: ' ' and text: ''

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

but both times I get the validation error not match found.

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

06 Oct 2015

Hello,

Please, use the following code:

Code: Select all

fd.field('InternalName').control()._el().find('#divEntityData').attr('key', '')
fd.field('InternalName').control()._el().find('#content').html('')
Replace the hightlighted text with the internal name of your external data field.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests