Disable a button

How to disable a download button after a single use in ChronoForms.

Overview

The problem is that users can submit a download multiple times, but it should only be allowed once.
Use a Save Data action before the download to update a flag in the database for each user. Then, on the download page, read that flag with PHP to check the value and add a class to the button to disable it.

Answered
ChronoForms v8
Pk Pkoll 13 Jun, 2026

Hi Max,

I have a form with a download button. Everything works fine, but users can only submit a download once. Therefore, I want to disable the button after the download. I haven't succeeded so far. Can you tell me how I can do that?

greetings 

Paul

Max_admin Max_admin 13 Jun, 2026
Answer

Hi Paul

Before the Download action you can use a Save Data to update a flag in the database for each user (maybe you will need a new database table for that if you do not have one).

Later on the download page you can read that flag and use PHP to check the value and build a class string which you can add to the button.

Let me know if you need more details.

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Pk Pkoll 13 Jun, 2026
1 Likes

Hi Max,

Thanks for your answer.

I found an other solution. Thanks Your solution helps me to find an other one!

Paul

Max_admin Max_admin 14 Jun, 2026

Great, no problem! 😊

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply