Forum support

We provide good documentation for our free Joomla! extensions, including online documentatation directly in the administraton interface. If you need further individuel help with our free Joomla! extensions, you can subscribe for our payed support forum. Please apply for the paid forum support here and log in with the user id of the user with whom you have purchased the forum support.

Forum Support is free as long as you have an active Visforms Subscription or an active Subscription for the Bootstrap Carousel. Please just log in with your subscription user id.

Read-only use of the forums is free for everybody.

Topic-icon "Allow URL parameters" does not work anymore

More
3 years 4 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.

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #4184 by Administrator
Replied by Administrator 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

-- Visforms Developer --

I helped you? The best way to thank me is to post a review on Joomla! Extensions Directory or to use the donate button to the right and make a donation. :)

Always consult our documentations before asking a question on our forum, the answer is most probably there. ;)

Konnte ich dir helfen? Die beste Art mir zu danken ist es, ein Review auf Joomla! Extensions Directory zu schreiben oder den Spendenbutton rechts zu verwenden, um mir eine Spende zukommen zu lassen. :)

Bitte konsultiere immer zuerst unsere Dokumentationen bevor du eine Frage im Forum stellst, die Antwort ist bestimmt da. ;)

Enjoy Joomla!

Please Log in or Create an account to join the conversation.

More
3 years 4 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.

Please Log in or Create an account to join the conversation.

Moderators: Administrator