The WorkFlowInitiateAndClose function is used to initiate the workflow and then close the workflow form after the initiation.
Syntax
WorkFlowInitiateAndClose(IdValue, WorkFlowID)
Argument Count: 2
Description
The WorkFlowInitiateAndClose function is used to initiate a workflow and close the associated WebPart form.
Arguments
IdValue
Type: string
Is Optional: false
Description: Unique ID value for initiating the workflow.
WorkFlowID
Type: string
Is Optional: true
Description: Workflow ID of the workflow to be initiated.
Example Usage
WorkFlowInitiateAndClose(FormDataId1.Value)
In this example, the workflow is initiated using the unique ID value FormDataId1.Value. The WorkFlowID is not specified, so it defaults to an optional parameter.