Page 1 of 1

Clear External Data field

Posted: 05 Oct 2015
by gleegeld
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.

Re: Clear External Data field

Posted: 06 Oct 2015
by Dmitry Kozlov
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.