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.

"Allow URL parameters" does not work anymore

Mehr
7 Jahre 1 Monat her #4183 von luken
Hi.
Short description:
Today I updated to version 3.8.21.
And "Allow URL Parameters" is no longer working.
No error message in console.
Joomla 3.6.5

Full description:
I have a form with an EMAIL field and a SEND button.
This form redirects to another page with another form that captures the email by parameters in the URL.
Before upgrading it worked correctly.
Now the URL contains the parameter "? Email=myemail@mydomain.com" , but the form does not capture it.

Additional problem information:
I added on my own an autocomplete JS plugin, loaded with The Blank Module. (Applied to another field, not the EMAIL field)
Until yesterday it worked well.
After the update, I encountered a JS conflict (send button off).
The conflict was solved by loading the jquery-min file at the top of the template index (before updating it was loaded into the blank module without any problem).
Anyway, disable the autocomplete plug-in, the "Allow URL parameters" does not work either.

Any idea?
Thank you.

Mehr
7 Jahre 1 Monat her #4184 von Administrator AV
Administrator AV antwortete auf "Allow URL parameters" does not work anymore
Hi,

it is possible to display more than one Visforms form on one page.
There are new features added to Visforms continuousely.
In combination with the possibility to display more than one Visforms form on one page, some of these new features required that name attributes (in HTML) of the form controls are unique throughout one page.
Therefore I had to change the field name attributes of the form controls (in HTML).
With exception to this one use case which you describe, modified field names are completely handled within the Visforms code, but this exact use case (user inputs made in one Visforms form are set as default values in a second form using a redirect url after form submit and url parameters) needs some adaptations.

In previous Visforms Versions, the value of the field name attribute of the form controls in HTML just was the field name option from the field configurations. Now the control name attribute is composed from a unique context and the field name in order to create unique control name attribute throughout the page. This unique value depends on how you publish the form. If the form is published with a menu item, for example, it is the word "form" plus the form id.

Example: You have a form with id 2, and a field with name "obejctname".
If the form is published with a menu item, the name attribute of the HTML control (input or select...) of this form field will be "form1obejctname". If the form is published in a module, the module id is used. For example if your module has the id 60, the name attribute would be "modvisform60obejctname".

In order to make it possible to still use the feature (user inputs made in one Visforms form are set as default values in a second form using a redirect url after form submit and url parameters), I have added a new option to the field configuration (tab "advanced"). It is called "Redirect Url Parametername". If you want to submit user inputs from one form to another using url parameters, you have to use this new option, in order to adapt the name of the url parameter to the name attribute of the receiving form. I think, the best way to find the correct name for the url parameter, would be to look at the receiving form with the browser console and check which value the name attribute of the control, which you want to set through url parameter, really has.

I had updated the documentation www.vi-solutions.de/en/documentations/vi...lue-using-url-params in January, but I can understand, that this would not be the first place for you to look for an answer and the explanations there are still brief.

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

Mehr
7 Jahre 1 Monat her #4185 von luken
Thank you.
I had read the documentation but forgot the changes from 3.8.
Before updating with default parameters was sufficient.
Now I added the module ID in the advanced field "Redirect URL parametername".
Thank you very much for your time.
The problem was solved.

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum