define(["require","exports","../../Validation","./FormElementMap"],function(e,t,a,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(o.prototype.execute=function(e,t){var r=e.error,o=e.elementName,n=e.form;"object"==typeof o&&(n=i.getFormForElement(o)),a.validation.exists("form",n);e=a.validation.boolean("markdown",e.markdown,!0),o=n.actor.getElementName(o,n.event);return n.actor.setElementError(o,r,e),{}},o.action="gcx:wf:forms::SetFormElementError",o.suite="gcx:wf:builtin",o);function o(){}t.SetFormElementError=r});