Automatically unpublishing the form (or disabling/hiding components) upon reaching a threshold id number

asolarige 29 Oct, 2023
In ChronoForms v5, I would like to either unpublish the form or disable/hide form components automatically when a given threshold number of form compilations has been reached.
I tried to do this by adding a custom code in the "On load" Setup section, using php if statements to check the id number, but without any success... :-(
Can anyone help me?
Thanks a million!
A.S.
Max_admin 30 Oct, 2023
Answer
you need to save each form entry using the "save data" then use the "read data" in the first page of the form to redirect or block access if the threshold is reached
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
asolarige 30 Oct, 2023
Dear Max,
Thanks a lot for your prompt reply and for your help: really appreciated!
I guess that the solution you propose applies to ChronoForms versions higher than v. 5. Am I right? If so, is any alternative workaround available for v. 5?
I wasn't able to find the "save data" and "read data" actions in v. 5.
Many thanks!!
A.S.
Max_admin 31 Oct, 2023
I can not remember what they were called in v5, but they should be something similar
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.