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?

"Allow URL parameters" does not work anymore

More
7 years 7 months ago #4183 by 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.

More
7 years 7 months ago #4184 by Administrator AV
Replied by Administrator AV on topic "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 :-).

More
7 years 7 months ago #4185 by 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.

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum