Web Connector 25.2
Web Connector Help

# JavaScript Dialog Parameters

The parameters in this section configure the connector to handle JavaScript dialogs and alerts.

You can set these parameters in the TaskName section. For example:

    [MyTask]
    JsDialogUrlRegex=.*/prompt.htm
    JsDialogPromptText=Here is my response
    JsDialogAccept=TRUE

Alternatively, to use different sections to handle different dialogs, set the JsDialogSections parameter. This allows you to define multiple sections containing the settings. For example:

    [MyTask]
    ...
    JsDialogSections=JavaScriptDialog0,JavaScriptDialog1

    [JavaScriptDialog0]
    JsDialogUrlRegex=.*/prompt.htm
    JsDialogPromptText=Here is my response
    JsDialogAccept=TRUE

    [JavaScriptDialog1]
    JsDialogUrlRegex=.*/another_prompt.htm
    JsDialogPromptText=Here is my other response
    JsDialogAccept=TRUE

Each dialog that the connector encounters is processed using the first section where the values of JsDialogUrlRegex, JsDialogTypeRegex, and JsDialogMessageRegex match the dialog box. The connector automatically dismisses any dialog that you do not handle.

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Web Connector 25.2

Topic Title: JavaScript Dialog Parameters