[GH-ISSUE #23225] issue: Prompt variables and Input Forms not working anymore #19923

Closed
opened 2026-04-20 02:28:54 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @AndreasUpb on GitHub (Mar 30, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23225

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.8.12

Ollama Version (if applicable)

No response

Operating System

Debian

Browser (if applicable)

Chrome

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Using suggestion prompts with input variables not working anymore. After filling the form and click on Save the form should fillout the user prompt, as before.

Actual Behavior

Two js errors occur, when using prompts with variables.

If no placeholder is set, the first js error occurs already when the input-form opens. When the variable like {{myText|textarea:placeholder="Please fill out ..."}} has a placeholder defined, the error still occurs but when starting to type in the form-field (and the placeholder is hidden).

Uncaught (in promise) ReferenceError: placeholder is not defined
at InputVariablesModal.svelte:106:22
at InputVariablesModal.svelte:330:50

The second error occurs when clicking on Save.

Uncaught (in promise) ReferenceError: variable is not defined
at InputVariablesModal.svelte:88:42
at h (InputVariablesModal.svelte:27:68)
at HTMLFormElement.<anonymous> (InputVariablesModal.svelte:82:7)

Steps to Reproduce

  1. Create a new Prompt-Template for /myPrompt with content This is a simple example: {{MyText|textarea}}
  2. Use the prompt with /myPrompt
  3. See the placeholder-error in the js-console
  4. Enter a text in the input like "My little test" and use the save button
  5. See the variable-is-not-defined error in js-console

Logs & Screenshots

Uncaught (in promise) ReferenceError: placeholder is not defined
at InputVariablesModal.svelte:106:22
at InputVariablesModal.svelte:330:50

Uncaught (in promise) ReferenceError: variable is not defined
at InputVariablesModal.svelte:88:42
at h (InputVariablesModal.svelte:27:68)
at HTMLFormElement. (InputVariablesModal.svelte:82:7)

Additional Information

Maybe related to refactoring happened in 0dcd6ac983

Originally created by @AndreasUpb on GitHub (Mar 30, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23225 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.8.12 ### Ollama Version (if applicable) _No response_ ### Operating System Debian ### Browser (if applicable) Chrome ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Using suggestion prompts with input variables not working anymore. After filling the form and click on Save the form should fillout the user prompt, as before. ### Actual Behavior Two js errors occur, when using prompts with variables. If no placeholder is set, the first js error occurs already when the input-form opens. When the variable like ` {{myText|textarea:placeholder="Please fill out ..."}} ` has a placeholder defined, the error still occurs but when starting to type in the form-field (and the placeholder is hidden). ``` Uncaught (in promise) ReferenceError: placeholder is not defined at InputVariablesModal.svelte:106:22 at InputVariablesModal.svelte:330:50 ``` The second error occurs when clicking on Save. ``` Uncaught (in promise) ReferenceError: variable is not defined at InputVariablesModal.svelte:88:42 at h (InputVariablesModal.svelte:27:68) at HTMLFormElement.<anonymous> (InputVariablesModal.svelte:82:7) ``` ### Steps to Reproduce 1. Create a new Prompt-Template for /myPrompt with content `This is a simple example: {{MyText|textarea}}` 2. Use the prompt with /myPrompt 3. See the placeholder-error in the js-console 4. Enter a text in the input like "My little test" and use the save button 5. See the variable-is-not-defined error in js-console ### Logs & Screenshots Uncaught (in promise) ReferenceError: placeholder is not defined at InputVariablesModal.svelte:106:22 at InputVariablesModal.svelte:330:50 Uncaught (in promise) ReferenceError: variable is not defined at InputVariablesModal.svelte:88:42 at h (InputVariablesModal.svelte:27:68) at HTMLFormElement.<anonymous> (InputVariablesModal.svelte:82:7) ### Additional Information Maybe related to refactoring happened in https://github.com/open-webui/open-webui/commit/0dcd6ac983bede06b8477179192154467f5b24a2
GiteaMirror added the confirmedconfirmed issuebug labels 2026-04-20 02:28:54 -05:00
Author
Owner

@flefevre commented on GitHub (Mar 30, 2026):

We do observe same behaviour

<!-- gh-comment-id:4156641432 --> @flefevre commented on GitHub (Mar 30, 2026): We do observe same behaviour
Author
Owner

@tjbck commented on GitHub (Apr 1, 2026):

Should be addressed in dev, confirmation wanted here.

<!-- gh-comment-id:4169235961 --> @tjbck commented on GitHub (Apr 1, 2026): Should be addressed in dev, confirmation wanted here.
Author
Owner

@Classic298 commented on GitHub (Apr 1, 2026):

ebc9ccbe1c

<!-- gh-comment-id:4169353798 --> @Classic298 commented on GitHub (Apr 1, 2026): https://github.com/open-webui/open-webui/commit/ebc9ccbe1cd08b517ee85efb25f606eb528bd252
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#19923