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?

page url as default value get a Form submit failed error

More
4 years 5 months ago - 4 years 5 months ago #6905 by Stefano
hi,
I'm in trouble with the "page url as default value". This is what I did:

1. create the Form (ID 1), in which i created a hidden field "Riferimento" (alias "riferimento")

2. installed the Visforms Subscription version vfsubscription_j3.9.0_3.4.11 on Joomla 3.9.18 (the installation goes well, but I cannot see a plugin with in the name "subscription")

3. create an article in which I put the following plugin's code
Code:
{vfformview}{"formid":"1","urlparams":{"riferimento":"[_url]"}}{/vfformview}

4. I created a menu entry for this form

If i disable the hidden field the form work well in module position and in article, but if the hidden field is active the paramiters do no have effect, I cannot receive an email in which I set the "[RIFERIMENTO]" placeholder in the mail sobject. Instead I get the errr:
Code:
Form submit failed The value submitted for "Riferimento" is not valid.

I checked that the plugn "Content - Visforms Form" that is described as "Show a Visforms form inside an article" is active. (in the documentation is cited "Content Visforms Form View" that I can't see on your download page).

What I'm wrong?

thankyou

S.
Last edit: 4 years 5 months ago by Stefano.

More
4 years 5 months ago #6906 by Administrator AV
Replied by Administrator AV on topic page url as default value get a Form submit failed error
Hi Stefano,

the Visforms Subscription itself is not a Plugin. It is a collection (a so called package installation) that installs many Plugins (with different names) and a so called "file" extension.

Now about your problem.
As far as I can see, the plugin code, which you put into the article, is correct.
I guess, that at 4. you created a menu item that displays the article with the plugin code, correct?

The most probable reason for your problem is the cache settings of your website.
A form is a dynamic content which must never be cached.
But I think, that you have set up the cache configuration of your website (cache plugins and/or Joomla! configuration) in a way, that the article page is cached.
That causes the problem.

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
4 years 5 months ago - 4 years 5 months ago #6910 by Stefano

Administrator wrote: Hi Stefano,

the Visforms Subscription itself is not a Plugin. It is a collection (a so called package installation) that installs many Plugins (with different names) and a so called "file" extension.


hi Aicha,

note that in the documentation page here:

www.vi-solutions.de/en/visforms-content-...sert-form-in-article

you wrote:
Code:
Enable plugin in plugin manager Please make sure, that you have installed your Visforms Subcription. After that, you have to enable the plugin in the plugin manager before you can use it. Go to the Administration Panel of your Joomla! installation and click the top menu item "Extensions" and then "Plugin Manager". Search for the list item with the name "Plugin Content Visforms Form View". You can use the search filter above the list. Make sure the plugin "Status" is set to enabled. If the plugin is not published, the string which you have inserted in the article will not be removed.

Am I in the wrong place or I misunderstanding the sentences?

Administrator wrote: Now about your problem.
As far as I can see, the plugin code, which you put into the article, is correct.
I guess, that at 4. you created a menu item that displays the article with the plugin code, correct?


Yes it is correct

Administrator wrote: The most probable reason for your problem is the cache settings of your website.
A form is a dynamic content which must never be cached.
But I think, that you have set up the cache configuration of your website (cache plugins and/or Joomla! configuration) in a way, that the article page is cached.
That causes the problem.


Not in this case, I totally disabled the cache and nothing changed, this is the result:
- form ID 1 in module position: display correct, send mail correct but no paramiters work (the [_url] in this case), no prior error message
- form ID 1 in article with the plugin's code {vfformview}{"formid":"1","urlparams":{"riferimento":"[_url]"}}{/vfformview}: display correct, send mail correct but no paramiters work (the [_url] in this case), no prior error message
- for extra check I tested the form with the Beez3 template: nothing changed

thank you per your reply, and sorry for the late responsi, I thinked I chcked the subscribe button, but at the and I missed it

S
Last edit: 4 years 5 months ago by Stefano.

More
4 years 5 months ago #6912 by Administrator AV
Replied by Administrator AV on topic page url as default value get a Form submit failed error
Hi Stefano,

it looks to me, that we have made some progress.
The error which you reported in your first post ("form submit failed") seems to be gone when you submit the form from the article, where it is included via plugin.
And the mail is send.

So, now we have a new problem.
It looks to you, as if the value (the page URL) is not passed properly by the hidden field "Riferimento", because it is not in the mail subject.

There are two steps involved.
First: Setting the page URL as value in the field
Second: Replace a placeholder in the mail subject.
The problem can be caused by either one.

So first we have to check, whether the field value is set properly.
There are different ways to check this.
- If you store the submitted data in the database you can just check there if the value is stored properly
- You can enable the mail option "include data" and check if the value is correct inside the mail
- You can open the html page source of the page with the form an check if the value of the hidden field is correct

Let me know about your results.

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
4 years 5 months ago - 4 years 5 months ago #6917 by Stefano

Administrator wrote: So, now we have a new problem.
It looks to you, as if the value (the page URL) is not passed properly by the hidden field "Riferimento", because it is not in the mail subject.

There are two steps involved.
First: Setting the page URL as value in the field
Second: Replace a placeholder in the mail subject.
The problem can be caused by either one.


Hi Aicha,
I'm not sure to have understand what you are referring to, so sorry if I had misunderstand your questions

Administrator wrote: So first we have to check, whether the field value is set properly.
There are different ways to check this.
- If you store the submitted data in the database you can just check there if the value is stored properly
- You can enable the mail option "include data" and check if the value is correct inside the mail
- You can open the html page source of the page with the form an check if the value of the hidden field is correct



- I have activated the save data in the database, the column "riferimento" is present, and the item's value is set to "URL: " (That is the value set for the "value" field in the Basic Options Tab for the hidden field). IN the Advanced Tab of the hidden field the value of the field "Allow URL Paramiters" is set to Yes

- the "include data" is active, and in the Mail Options Tab the mail subject is set with the placeholder:
"Richiesta info viaggio: [RIFERIMENTO]"

Here you can see the email sended
Code:
-------- Messaggio originale -------- Oggetto: Richiesta info viaggio: URL: Data: Fri, 5 Jun 2020 17:26:31 +0200 Mittente: z <z@k.it> Rispondi-a: x@y.it A: x@y.it Form : Vuoi saperne di più? Nome : jj Cognome : jj Email : x@y.it Telefono : Richiesta informazioni : hh Ok accetto i termini e le condizioni d'uso del sito : hh Riferimento : URL: IP Address : x.x.x.x

- the html code involved for the hidden field is present in the page, here it is:
Code:
<form action="/form-vuoi-saperne-di-piu?task=visforms.send&amp;id=1" method="post" name="visform" id="visform1" class="visform defaultform "> <fieldset class="fieldset-1 active"><input class="" id="field9" name="form1riferimento" value="URL: " type="hidden"/>


thank you

S.
Last edit: 4 years 5 months ago by Stefano.

More
4 years 5 months ago #6918 by Administrator AV
Replied by Administrator AV on topic page url as default value get a Form submit failed error
Hi Stefano,

I actually think, that there is another content plugin on your website, which is triggered before the Content Plugin Visforms Form View and which replaces the [_url] placeholder in the Visforms Plugin Code with "URL :"

Could you please order the Content Plugins on your Website.
Make the Content Plugin Visforms Form View the first one in the list.

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

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum