Joomla 6 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 14. Oktober 2025 alle unsere Joomla Erweiterungen mit Joomla 6 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt eigenständige Dokumentationen Visforms Joomla 4, Visforms Joomla 5 und Visforms Joomla 6.

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Wichtige Angaben für fast jede Frage:
V1: Welche Visforms-Version läuft?
V2: Welche Joomla-Version läuft?
V3: Welche PHP-Version läuft?

Update a field value on form submission

Mehr
1 Monat 2 Wochen her - 1 Monat 2 Wochen her #12502 von NickPovey
Update a field value on form submission wurde erstellt von NickPovey
Visforms 5.6.3
Joomla 5.4.8
PHP 8.4.24

I have a field "Tally Number" which is currently generated via a SQL query and incremented by one for each time a completed form is submitted. Thus generating a unique sequential number for each form submission starting at 1. All works well until multiple forms are simultaneously opened by different users. This is because the tally number is calculated when the form is opened, but only incremented when the form is submitted. Thus forms opened at the same time get the same Tally Number. Not being a programmer my question is two fold. Can a field be made to calculate only on submission? Or, maybe there is a better way to achieve what I need?
And just for the record VisForms has been simply fantastic for us over many years now in helping us to run our annual sailing event.
Thank you. Nick
Letzte Änderung: 1 Monat 2 Wochen her von NickPovey.

Mehr
1 Monat 2 Wochen her #12506 von Administrator AV
Administrator AV antwortete auf Update a field value on form submission
Hi Nick,

We are happy to hear, that Visforms works fantastically for your!

There is a field configuration option 'Unique Values Only'.
Field Configuration >> Baisc Settings >> Validation Settings

This option enforce that within records submitted for a form, each user input in this field is unique.
The validation is performed on the server site, directly when the record is stored in the data base.
If there already exists a record with the same value, the form will be redisplayed to the user who came second.

This feature prevents dublicate tally numbers.
You might want to add a usefull php validation error message.
Field Configuration >> General Settings >>'Help-text and Error Messages >> Custom error message (php)

Kind Regards and good luck with your sailing event,
Aicha
 

:idea: I recommend you the new and up-to-date documentation for Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).

Mehr
1 Monat 1 Woche her - 1 Monat 1 Woche her #12527 von NickPovey
NickPovey antwortete auf Update a field value on form submission
Aicha, thank you for your reply. I've given your suggestion some testing and unfortunately for us it isn't going to work. The "Tally" field isn't displayed to the user and we don't want it to be editable. And it doesn't automatically update on re-submission. I think that the only approach is to generate a value for "Tally" at the time of writing the data to the table. I'm not sure if this is possible or how it might be achieved. Thankfully the number of duplicates is only a handful per event so making corrections isn't too onerous. Thank you Nick

 
Letzte Änderung: 1 Monat 1 Woche her von NickPovey.

Mehr
1 Monat 1 Woche her #12531 von Administrator AV
Administrator AV antwortete auf Update a field value on form submission
Hi Nick,

I have created a development issue in the feature wish list:
Issue [VF- 1822]: Expand Feature ‘Unique Values Only’ to Field Type ‘hidden’ 

When we release the new feature, you will be explicitly informed about the release here in the topic.
Thank you for your suggestion!

Kind Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderatoren: Administrator AV, Administrator IV
Powered by Kunena Forum