Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Attribute.prototype.createString = function (name, value, label, format, maxLength, isVisible, isDisabled) {
var attribute = createAttribute(name, value);
var stringAttribute = new XrmMock.StringAttributeMock(attribute, format || "text", maxLength || 100);
addAttribute(stringAttribute);
Control.createStringControl(name, label || "", isVisible || true, isDisabled || false, attribute);
return stringAttribute;
};