Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 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 nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

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?

Unique ID to Hidden Field

Mehr
6 Tage 2 Stunden her #11615 von akshehu
Unique ID to Hidden Field wurde erstellt von akshehu
Hi..

I have set up the hidden field and made it generate a unique id (codes). But the codes is too long.

I want the code generated to b 4 only Pluse Initial value i may set.

How to to set this.?

Thank you
 

Mehr
5 Tage 2 Stunden her #11617 von Administrator IV
Administrator IV antwortete auf Unique ID to Hidden Field
Hello akshehu,

There is no such thing as a sufficiently unique number with only 4 digits.
In this case, a simple unique counter is more appropriate.
The counter can then become too large at some point if there is too much form data.

You can generate your own unique code using SQL.
You can use all functions to calculate your counter and add additional text.

Solution:
- A field of type 'Text'.
- Protect the field against user input (A or B)
- A: Field Configuration >> 'Layout' tab >> 'Display Settings' group >> Read-Only = 'checked'.
- B: Field Configuration >> 'Layout' tab >> 'CSS Class Settings' group >> CSS Class For Control Group = 'd-none'.
- Field Configuration >> 'Basic Settings' tab >> 'Validation Settings' group >> Unique Values ​​Only = 'Yes'.
- Field Configuration >> 'Basic Settings' tab >> 'Dynamic Settings' group >> SQL Field = 'Yes'.
- Field Configuration >> 'Basic Settings' tab >> 'Dynamic Settings' group >> Field value SQL statement = 'Your SQL statement'.

Unique counter, 3 options:
A: The next free record ID can be used as a unique counter:
Code:
select max(id)

B: There is a similar example in the forum, including various SQL statements.
Auto Increment Field:
vi-solutions.de/en/forum/19-joomla-exten...increment-field#9103

C: The SQL function 'UUID()' is suitable for a limited unique number, which you can also shorten to 4 digits.
Code:
select concat('TEST', substring(uuid(), 1, 4))

Note:
During the time the form is being filled out, another user may create a new form record.
In this case, the following setting prevents the saving of an identical value: Unique Values ​​Only = 'Yes'.
If another user submits the same form in the meantime, an error message appears and the form must simply be submitted again without any changes.

The current value for the 'Text' field has already been automatically changed/incremented/adjusted.

Expanding Visforms:
We will expand the simple configurable options in Visforms.
I have created a development issue in the feature wish list:
Issue [VF-1494] Forum: Field Value or new Type: Unique number with start value and formattable counter

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

Kind regards, Ingmar

: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 :-).
Folgende Benutzer bedankten sich: akshehu

Mehr
5 Tage 24 Minuten her #11618 von Administrator IV
Administrator IV antwortete auf Unique ID to Hidden Field
Hello akshehu,

If you really just want a 4-digit random expression with a freely selectable prefix, you can simply continue using the 'hidden' field.
In this case, you also work with the 'Fill Field With' parameter:
- Field Configuration >> 'Basic Settings' tab >> 'Default Value Settings' group >> Fill Field With = 'Custom default value from SQL statement'.
- Field Configuration >> 'Basic Settings' tab >> 'Default Value Settings' group >> Default value SQL statement = 'select concat('TEST', substring(uuid(), 1, 4))'.

Where:
4 = Number of digits from the UUID.
TEST = The prefix.

Best regards, Ingmar

: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 :-).
Folgende Benutzer bedankten sich: akshehu

Mehr
2 Tage 4 Stunden her #11623 von akshehu
akshehu antwortete auf Unique ID to Hidden Field
Thank you very much for the detail reply. I appreciate.

I will carefully try it out and see how it work for me.

Thank you

Mehr
1 Tag 12 Stunden her #11625 von akshehu
akshehu antwortete auf Unique ID to Hidden Field
I followed carefully your instruction and it worked like a charm.

Thank you so much for your support. 
Folgende Benutzer bedankten sich: Administrator IV

Mehr
1 Tag 4 Stunden her #11628 von Administrator IV
Administrator IV antwortete auf Unique ID to Hidden Field
Hello akshehu,

I'm glad I could help you.
You're very welcome.

Kind regards, Ingmar

: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 :-).

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum