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?

insert another add query on submit button

More
8 years 11 months ago #2247 by brijesh4534
insert another add query on submit button was created by brijesh4534
On my website, i have added a form and it stores data of the person who has filled that form.

Now i want to add that data to another server on the time of submission if the form i.e. when the record in visf0rm1 is updated the same should be updated on another server.
Is that possible???

and yes then where do i have to update the query....

More
8 years 11 months ago #2249 by Administrator AV
Replied by Administrator AV on topic insert another add query on submit button
Hi,

you have already posted almost the same question once on this forum and received a good answer.
Please don't repeat yourself!
As I have answered you already, you have to create a custom Plugin for Visforms using the onVisformsAfterFormSave Event.
You simply have to write a standard Joomla! Plugin of type Visforms.
You can find information about the parameters available for this event in the documentation.
www.vi-solutions.de/en/documentations/vi...loper-feature-events
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
8 years 10 months ago #2376 by brijesh4534
Replied by brijesh4534 on topic insert another add query on submit button
i checked the AfterFormSave Event. it works after it saves the data in database, the thing is i dont want to save the data on database, infact i have created the file and i just want to execute at the time, when user presses the submit button and that file should also execute...

More
8 years 10 months ago #2377 by Administrator AV
Replied by Administrator AV on topic insert another add query on submit button
Hi,

well then you could use the onVisformsBeforeFormSave Event and inside the function onVisformsBeforeFormSave($context, $form, $fields) in your plugin you have to stop all further processing of Visforms code after you have done what you want to do with plugin.
Code:
public function onVisformsBeforeFormSave($context, $form, $fields) { //your code in here $app = JFactory::getApplication(); //clear user state, this is important! $app->setUserState('com_visforms.form' . $form->id , null); $app->redirect("index.php"); $app->close(); return false; }

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
8 years 10 months ago #2382 by brijesh4534
Replied by brijesh4534 on topic insert another add query on submit button
Can you help me in making this plugin...??

More
8 years 10 months ago #2397 by Administrator AV
Replied by Administrator AV on topic insert another add query on submit button
Hi,

yes I can help you making this plugin but I have to charge for my work.
You can send me a description of what you need to contact@vi-solutions.de so that I can make you an offer.

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