Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Restrict User to Complete Form Only Once

More
7 years 9 months ago #3888 by encorelab
Restrict User to Complete Form Only Once was created by encorelab
Hi Vi-Solutions,

I just set up Visforms on my Joomla website & was very impressed with how easy it was to set up & get started :)

I set up a form & I am wondering how I can restrict users to submit the form only once?

I saw an article in your documentation about caching error & getting the message "Sorry, you can send the form only once" www.vi-solutions.de/en/documentations/vi...forms-caching-errors . But I am not seeing this message when I fill out the form multiple times.

How do I turn this feature on?

Many thanks,
Cory

More
7 years 9 months ago #3890 by Administrator AV
Replied by Administrator AV on topic Restrict User to Complete Form Only Once
Hi,

"Sorry, you can send the form only once" really is an error message, which is thrown, if a user clicks the submit button for the same submission more than once (for example because processing the form is slow, so that the page with the form, which was already submitted is still displayed for some time).

At the moment there is no specific form option "user can submit form only once" but there is a way to set this up.

Restrict a user to complete form only once, is obviously only possible if the form can only be submitted by logged in users, because otherwise it is not possible, if a user has already sumbitted the form.

You have to add a field to the form which is set by default to some of the user data from the Joomla! user (best option is the user e-mail address). Enable the "advanced" option "unique values only" for this field. This will prevent duplicate submissions from any logged in user. You can make this field readonly if you don't want the user to be able to change the value.

If you intend to use the Visforms Subscription feature "Edit data in frontend", which would allow users to edit data, which they have already submitted, there is a form option "Display edit link instead of form" (Basic form option). This options makes sure, that if a user has already submitted the form once, they will always see a link to the edit view instead of the form. (Assumed you have set up the complete feature properly as described in the documentation of the extension).

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
7 years 9 months ago #3893 by encorelab
Replied by encorelab on topic Restrict User to Complete Form Only Once
Thanks. This is very helpful!

Is it possible to modify the Error message that appears when logged in users try to vote more than once?

Currently is says "Inputs in field "Email address" are required to be unique but there is already a recordset with the value "xxxxxxxx@gmail.com" in the database. Please enter a different value." - is it possible to to add our own message there? I couldn't find this setting in the extension options.

Thanks again :)

More
7 years 9 months ago #3895 by Administrator AV
Replied by Administrator AV on topic Restrict User to Complete Form Only Once
Hi,

this text is create from a language tag, which is defined in the language ini file and the field Label and the user input. There is no form or field option to modify this text but it should be possible to create an override using the Joomla! Language mananager.

Field label and user input are the two parameters %s which are used in the translation string.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum