ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

How to make a form only once submittable?

joachimliedtke 25 Oct, 2019
What I achieved so far:
1) User A fills the form and submits
2) user_id is saved to the database
3) User A revisits the form, database indicates, that there is an entry already with the user_id. A message is displayed, that the user A is only allowed to fill the form once.

Question: How to hide the form now or disable the submit button?

TIA

EDIT: Managed to add a custom code containing CSS. But is there a more elegant way?
GreyHead 25 Oct, 2019
Hi joachimliedtke,

I think you can use an Event switcher in the On Load event. If the record exists show a message if not, show the Display Form action.

Bob
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com