Argument | Description | Types / Required |
result | The result to return. | string, number, boolean, array, object
not required |
This action has an impact in the following scenarios:
The action returns a boolean value indicating if a dialog successfully closed.
The action throws an exception if any of its arguments are not specified in a valid form.
<script>
const CS = new CSProActionInvoker();
CS.UI.closeDialogAsync({
result: {
userName: document.getElementById("userName").value,
password: document.getElementById("password").value,
}
});
</script>