Skip to content
VibecodeZero

Button does nothing when clicked in an AI-built app: why

Updated First published

On this page (4)
  1. Symptom
  2. Cause
  3. Prompt to paste
  4. How not to burn credits

Symptom

The button shows up and changes color when you hover over it, but clicking it changes nothing on the screen. No message appears.

Cause

For the AI, drawing a button and programming what it does are two separate tasks. Sometimes it does the first and forgets the second, especially when your request had many things in it at once.

Another common cause is a button that depends on something that doesn’t exist yet, such as a database that hasn’t been set up. In that case the action starts and fails without telling you. If the button saves something and the data vanishes when you reload, see My data disappeared when I reloaded the page. If the problem shows up as database errors, see Database errors in a vibe-coded app.

A button that “does nothing” can also be switched off, blocked by a form rule, or working while the screen doesn’t update. A five-minute check tells these cases apart before you spend a request.

Check it yourself first (five minutes, no coding)

Do these in order and stop at the first one that explains it.

  1. Look at the button. Is it greyed out? MDN says the disabled attribute means the button can’t be pressed or focused. If yours looks switched off, ask the AI which condition turns it on and why that condition isn’t met on this screen.
  2. If the button is inside a form, fill in every field. MDN’s form validation guide says that a field marked required stops the form from being submitted and shows an error message. On a phone that message can be easy to miss, so scroll up and check each field.
  3. Click once, then reload the page. If the new item shows up after the reload, the action worked and the screen didn’t refresh. Tell the AI exactly that. If nothing shows up, the action didn’t finish.
  4. Open the console and click again. In Chrome, press Ctrl + Shift + J on Windows or Linux, or Cmd + Option + J on a Mac (Chrome’s docs). Watch for red messages and copy the exact text. No red message at all is also information: it can mean the button isn’t connected to anything.
  5. Try a second place. Open the same link in another browser, on your phone and signed out. A button that works for you in the editor and fails for other people usually depends on a login or on data only you can see.

Then match what you saw:

What you see Most likely What to tell the AI
The button is greyed out The app keeps it switched off until a condition is met “Which condition enables this button, and why isn’t it met on this screen?”
A small message about a field, and nothing is saved A required field or a format rule stopped the form “Show a clear message next to the field that is blocking the form.”
A spinner that never ends, or ends with no message The action ran and failed without telling you Paste the red console text and ask what it means
Nothing at first, but the item appears after a reload The action worked and the screen didn’t refresh “After saving, update the list without a reload.”
Works in the editor preview, not on the published link The live site is an older version, or lacks something the editor has See Lovable preview works but the published site doesn’t
Works for you, not for another person A login or a permission rule on the data See Database errors in a vibe-coded app
No console message, and the button never reacts The button may not be connected to any action Use the prompt on this page

These are common patterns, not a guarantee. The console message is what settles it.

Give the AI the console message

Lovable’s debugging guide says Lovable reads your app’s console logs itself, but pasting the exact error message from your browser’s developer tools still helps when the error happens outside the preview, such as on your published site. If you have a message, use this version of the prompt:

When I click "[button name]" on [screen name], nothing happens. I opened the browser console and it shows this error:
[paste the red text]

Explain in simple terms what it means and what is causing it. Wait for my OK before you change anything.

Let the AI test it

Lovable. The project chat page says that when your app runs without errors but doesn’t behave as you intended, you can ask Lovable to investigate: describe what you see and what you expected, and it can inspect errors, logs and console output and test your app in a browser. The browser testing page says the agent can click buttons, fill and submit forms, and read console logs and network requests, always against the preview of the project you have open. Its example prompt is “Use browser testing to verify the sign-up flow works.” The docs advise building first and testing in a follow-up message, not asking for a big change and a test in the same prompt. Because it runs on the preview, it can’t tell you what happens on the published link.

Bolt. Bolt’s help page says Bolt can check that your project has no errors after it changes code, but can’t test what it built or see what the preview looks like. That’s why it can report a fix as done when the page looks the same. Instead of sending the same prompt again, describe what you see and what you expected, use Select to pick the button in the preview or type @ to tag the file, and attach a screenshot if you have one. Plan Mode lets you talk through the problem without changing your code, and Bolt’s docs list debugging help among its uses.

When the fix doesn’t stick

For Lovable, the docs suggest this order: use Try to fix once or twice when a build error appears, then describe the bug clearly, then switch to Plan mode to find the root cause instead of retrying blind fixes. The debugging guide says repeated blind fixes tend to pile up code that hides the real problem, and that you can restore a working version from version history if fixes have tangled the code. Your account includes 10 free fixes, and each one comes back 24 hours after you use it. A Plan mode message costs one credit plus any research Lovable runs, according to its Plan mode page.

For Bolt, restoring an earlier version doesn’t use tokens, but it only affects your project code: it doesn’t change your database or roll back server functions Bolt has already deployed, according to the same help page.

If the AI keeps saying it fixed the button and it still doesn’t work, see The AI says it fixed it, but the error is still there. If you’re going in circles and watching credits go, see AI agent stuck in a loop and burning credits.

After the fix, test the whole path

A fixed click isn’t the same as a working feature. Run through this list:

  1. Click the button and check that the result shows up where it should.
  2. Reload the page and check that the result is still there.
  3. Open the app in another browser or on your phone. If the app has logins, try signed out and with a second account.
  4. If you publish, publish again and run the same checks on the published link, because the editor preview and the live site can behave differently.

When you ask for a new button

Describe the button and what happens after the click in the same request. The prompt Add a new feature helps you do that. If the button is part of signing in and works only in the preview, see Lovable login works in preview but not on the published site.

Sources

Checked on November 21, 2026: Lovable docs, Debug and improve your app, Work with Lovable in the project chat (Fix errors and get unstuck), Test your app in a browser, Plan mode and Chat mode; Bolt Help Center, Bolt issues and Plan before building with Plan Mode; MDN, button element and Client-side form validation; Chrome for Developers, Open Chrome DevTools.

Prompt to paste

Copy the text below, replace what’s in brackets and send it in the chat of the tool you’re using.

Paste into the AI
When I click the "[button name]" button on [screen name or description], nothing happens.
I expected [what should happen, for example "the order to be saved and show up in the list"].

Check whether this button is connected to an action and whether that action works. Fix only what's needed and tell me how to test it.

How not to burn credits

  • Say in the same message what you clicked, what you expected and what happened. "The button doesn't work" alone usually leads to a round of questions and guesses.
  • When you ask for a new button, also say what should happen after the click and what the person should see. For example, "when I click Save, the order appears at the top of the list and the form is empty again". That avoids paying for a second request to wire it up.
  • If the button works sometimes, say when it works and when it doesn't. That detail often points straight to the cause and saves attempts.
  • Paste the red message from the browser console if there is one. The exact text is worth more than a description of it.
  • In Lovable, if you only want to understand what the button does before changing anything, ask in Chat mode. Lovable's docs say Chat mode never changes your code and each message is priced as a chat message, typically a fraction of a credit, covered first by the workspace's daily chat allowance. Under Credits used in a reply you can see what a message cost.

How Lovable counts credits, and what the free plan includes: Lovable credits explained.

Questions people ask

Why does my button do nothing when I click it?

The two most common reasons are that the AI drew the button without connecting it to an action, or that the action starts and fails without telling you. A failed action often depends on something that isn't set up yet, like a database or a login. A button can also be switched off, or a form field can stop the form from being sent.

How do I describe the problem to the AI?

Say which button, on which screen, what you expected and what happened. Lovable's docs give an example in the same spirit, "The login form does nothing on mobile. Walk me through what's happening." The prompt on this page follows that format.

How do I open the browser console?

In Chrome, press Ctrl + Shift + J on Windows or Linux, or Cmd + Option + J on a Mac. Click the button again and look for red messages. Copy the exact text and paste it to the AI. If nothing red appears, say that too.

What if the button works sometimes and not others?

Tell the AI that, and say when it works and when it doesn't. For example, "it works when I fill in everything, but not when I leave the phone number empty". That detail often points straight to the cause.

The button works in the preview but not on the published site. Why?

First check that you published your latest changes, because the published site only updates when you publish again. If it's up to date and still fails, the cause is usually something the live site doesn't have, like a login or data that only exists for you in the editor.

Bolt says it fixed the button, but nothing changed. What now?

Bolt's help page says it can check that your project has no errors, but it can't test what it built or see the preview, so it can report a fix as done when nothing changed. Don't send the same prompt again. Describe what you see and what you expected, point to the button with the Select tool, and attach a screenshot if you can.

The AI fixed the button, but now the data disappears. What happened?

The button may be saving the data only in the browser, not in a database. See the page about data that disappears when you reload.

New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe