Disable a button

Pk Pkoll 17h ago

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 13h ago

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 9h ago

Hi Max,

Thanks for your answer.

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

Paul

Post a Reply