Joomla 6 Notice

We are pleased to announce that all our Joomla extensions have been compatible with Joomla 6 since October 14th, 2025.

For those currently upgrading from Joomla 3 to 4: Instructions for Joomla 4 migration can be found here:

There are standalone documentations Visforms Joomla 4, Visforms Joomla 5 and Visforms Joomla 6.

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?

Formular ID

More
10 years 7 months ago #1953 by OrangeCocoon
Formular ID was created by OrangeCocoon
Hallo,

ich würde gernewissen mit welchem Code ich die ID des Formulares auslesen kann, damit ich andere Ausgaben für die Sprachdatei anlegen kann, da ich verscheiden Formulare habe.

Lieben Dank

More
10 years 7 months ago #1954 by Administrator AV
Replied by Administrator AV on topic Formular ID
Hallo,

normalerweise steht die Id des Formulars als Parameter mit dem Namen id im Request. Da kannst du sie dir mit dem ganz normalen Joomla! Code zum Auslesen von Request Parametern herholen.

Falls das nicht das ist was du suchst müsstest du schon etwas genauer erklären, was du eigentlich machen willst. Für mich gibt die Verbindung von Sprachdatei und Formularid ohne weiteren Kontext wenig Sinn. Welche Texte musst du denn formularspezifisch ändern, die in den Sprachdateien stehen?

Gruß,
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 :-).

More
10 years 7 months ago #1962 by OrangeCocoon
Replied by OrangeCocoon on topic Formular ID
Hallo Aicha,

ich muss "CHOOSE_A_VALUE" jeweils dreimal eine andere Ausgabe haben! Standart ist "Bitte wählen Sie einen Wert".

das würde ich auch gerne als Standard behalten - aber ich brauche jeweils für 2 Formulare eine andere Angabe bei einem muss "Bitte wählen Sie einen Kurs aus" und nun ja noch eins für alle Fälle... da ich nicht über URL Request gehen will, dachte ich ich kann es via ID machen - weiss aber nicht wie!

LG Kerstin

More
10 years 7 months ago - 10 years 7 months ago #1963 by Administrator AV
Replied by Administrator AV on topic Formular ID
Hallo Kerstin,

an der Stelle, an der das Control zusammengebaut und der String "CHOOSE_A_VALUE" eingesetzt wird, ist die Formularid nicht bekannt und du kannst sie dir nur über
Code:
$formid = JFactory::getApplication()->input->get('id', 0 'int');

holen und dann halt an den
Code:
JText::_('CHOOSE_A_VALUE'))
dranhängen.
Code:
JText::_('CHOOSE_A_VALUE').$formid)
evtl. auch conditional nur für bestimmte ids und dann die zuästzlchen Strings in den Sprachfiles anfügen.

Gruß,
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 :-).
Last edit: 10 years 7 months ago by Administrator AV.

More
10 years 7 months ago #1964 by OrangeCocoon
Replied by OrangeCocoon on topic Formular ID
Hallo Aicha,

es geht noch nicht ganz!

Wenn ich
Code:
$formid = JFactory::getApplication()->input->get('id', 0 'int');

eingebe -ist die ganze Joomla Seite leer!

Nun habe ich:
Code:
$formid = 1;

eingegeben und
Code:
JText::_('CHOOSE_A_VALUE'.$formid));

Dann spuckt er zumindest das richtige aus der Sprachdatei aus - hast Du noch eine Idee?

More
10 years 7 months ago #1965 by OrangeCocoon
Replied by OrangeCocoon on topic Formular ID
...okay - soweit bin ich weiter mit:
Code:
$formid = JFactory::getApplication()->input->get('id', 0 , 'int');

Spuckt er jetzt die ID des Beitrags aus - ich will aber die ID des Fomulares haben!?

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum