removeAttribute

Removes an XML attribute from a custom third-party XML packet that is added to the XML source of a form design.

Syntax

Reference_Syntax.removeAttribute( STRING param )

Parameters

param

A valid string representing the name of the property to remove.

Returns

Empty

Applies to

Version

XFA 2.1

Examples

Using a custom XML packet named myCustomPacket with an attribute named id , you could remove the attribute using the following scripts:

JavaScript

xfa.myCustomPacket.removeAttribute("id");

FormCalc

xfa.myCustomPacket.removeAttribute("id")

// Ethnio survey code removed