--- title: "User prompt" slug: "frebehav-user-prompt" updated: 2026-05-04T06:19:59Z published: 2026-05-04T06:19:59Z canonical: "docs.lobstersoftware.com/frebehav-user-prompt" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # User prompt *See also:* [User confirmation](/v1/docs/en/frebehav-user-confirm) > [!NOTE] > The behavior [User prompt](?c1753032354612#) calls a modal dialog prompting text input from a user. | Configuration | User prompt | | --- | --- | | ![images/download/attachments/177913873/image-2024-9-25_15-4-23-version-1-modificationdate-1727269462293-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-25_15-4-23-version-1-modificationdate-1727269462293-api-v2.png) | ![images/download/attachments/177913873/image2018-11-19_15-34-53-version-1-modificationdate-1727268698450-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2018-11-19_15-34-53-version-1-modificationdate-1727268698450-api-v2.png) - **Clear** removes all input characters. - **OK** forwards the input characters to the **Actions on "true"**. - **Cancel** ignores input and executes the **Actions on "false"**. | ## Configuration - **Input type** defines the type of input: | Input type | Input description | | --- | --- | | Single line (default) | Single line of text (pressing "Enter" is equivalent to clicking the **OK** button). | | Multi line | Multiple lines of text (pressing "Enter" inserts a "newline"). | | Formatted | Formatted text by a WYSIWYG text editor (returns HTML format). | | xml json java | Text input from a "code editor" featuring syntax highlighting and line numbers. Besides the choices featured in the dropdown (xml, json, java) the editor supports many other formats (perl, php, python, etc.). Instead of a selection, the combobox also accepts direct text input of "format keys". Try your luck! **NOTE:** Format keys are case-sensitive. While "html" is supported (see example), "HTML" is not. Example: A user is prompted for details of a vessel in the format of an HTML table to type in or paste from the clipboard: ![images/download/attachments/177913873/image2020-5-7_11-30-16-version-1-modificationdate-1727268698470-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-5-7_11-30-16-version-1-modificationdate-1727268698470-api-v2.png) | - **Title** defines the text in the title bar of the dialog. - **Message** defines the prompt message shown above the entry field. - **Default value source** defines the type of source for an optional default value to show in the entry field: | Default value source | Sets default value to ... | | --- | --- | | Field | ... value of the linked field (if any). | | Expression | ... evaluation result of an expression (e.g. "VAR(variable)"). | | Fix value | ... static text (as indicated in configuration). | - The **Full screen** option... defines that the dialog should be sized to fill the screen (*or rather:* the "view slot"). - **Width/Height/Min. width/Min. height** ... specifies the window size value or minimum window size by CSS units of measurement with Pixel (px) as a default. **NOTE:** These settings are not available if the **Full screen** option is selected. | Unit | Description | Examples | | --- | --- | --- | | px (default) | pixel | "300px", "300" | | % | percentSize is calculated relative to the parent element size. | "100%" uses all space available (minus design padding and the border) | | em | (typographic unit)The actual size is scaled relative to the font size (in pt) applicable in the window. | "10em" define 130pt of width or height, at a given font size of 13pt. | - The choice for **Resizable** defines whether/which dimensions of the modal dialog may be resized by the user. - The option **Cancel possible** defines whether the **Cancel** button is available in the dialog. ## Use case example ### Objective Upon clicking a [Button](/v1/docs/en/fre-button-vo), the user shall be prompted for text input to be stored in a [Text field](/v1/docs/en/custom-custom-text-field) "Name". Any existing content of the text field shall appear as a default value in the input field of the user prompt. ![images/download/attachments/177913873/image2018-11-19_16-42-57-version-1-modificationdate-1727268698452-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2018-11-19_16-42-57-version-1-modificationdate-1727268698452-api-v2.png) ### Configuration A behavior of the [User prompt](?c1753032354612#) type which is triggered by [Click](/v1/docs/en/fretrigger-clicked) is configured for the [Button](/v1/docs/en/fre-button-vo) as shown in the following image. Besides **Title** and **Message** texts, the only non-default setting is a link to the [Text field](/v1/docs/en/custom-custom-text-field) "Name" as a **Source field** for the default value. ![images/download/attachments/177913873/image-2024-9-25_15-7-9-version-1-modificationdate-1727269628231-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-25_15-7-9-version-1-modificationdate-1727269628231-api-v2.png) In response to the user submitting input to the **Actions on "true"**, a [Set value](/v1/docs/en/freaction-set-value) action is configured to transfer the entered text (`$input`) from the prompt into the [Text field](/v1/docs/en/custom-custom-text-field) "Name": ![images/download/attachments/177913873/image-2024-9-26_8-44-30-version-1-modificationdate-1727333070147-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-26_8-44-30-version-1-modificationdate-1727333070147-api-v2.png) ### Runtime example When the form is opened, the [Text field](/v1/docs/en/custom-custom-text-field) "Name" is empty. ![images/download/attachments/177913873/image2018-11-19_16-42-57-version-1-modificationdate-1727268698452-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2018-11-19_16-42-57-version-1-modificationdate-1727268698452-api-v2.png) Clicking the [Button](/v1/docs/en/fre-button-vo) opens the prompt with an empty input field, since a name is yet to be entered: ![images/download/attachments/177913873/image2018-11-19_16-55-28-version-1-modificationdate-1727268698458-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2018-11-19_16-55-28-version-1-modificationdate-1727268698458-api-v2.png) For the purpose of demonstration, the name "Jonas Abend" is entered and confirmed by clicking **OK** or pressing the "Enter" key. The dialog is closed and the input appears in the [Text field](/v1/docs/en/custom-custom-text-field) "Name": ![images/download/attachments/177913873/image2018-11-19_17-5-9-version-1-modificationdate-1727268698461-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2018-11-19_17-5-9-version-1-modificationdate-1727268698461-api-v2.png) When the [Button](/v1/docs/en/fre-button-vo) is clicked again, the user prompt reappears but shows the entered name as a default: "Jonas Abend": ![images/download/attachments/177913873/image2018-11-19_17-6-42-version-1-modificationdate-1727268698463-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2018-11-19_17-6-42-version-1-modificationdate-1727268698463-api-v2.png)