Add-on Any addon that allowing this?

Escobar

Active member
I basically looking for a addon that uses a form to submit data to a db and this info can be used in for example a page node. Is there any addon like this?
 
That add-on can save form data to a table in the database, but any processing of that data must be done by an external program. Once the form data is saved, no further processing of the data takes place in the add-on. Saving the data to a table in that add-on is meant for people that want to analyze or use data from forms on their own. No support is given for that table if used.

 
That add-on can save form data to a table in the database, but any processing of that data must be done by an external program. Once the form data is saved, no further processing of the data takes place in the add-on. Saving the data to a table in that add-on is meant for people that want to analyze or use data from forms on their own. No support is given for that table if used.

Ye i have your addon :) its a great one but i wanna use the data like allowing people to add stuff to a list. For example if i make a blacklist i want to add be able to give my users the possibility to add users to it and they will be displayed on a list in a page node.
 
Ye i have your addon :) its a great one but i wanna use the data like allowing people to add stuff to a list. For example if i make a blacklist i want to add be able to give my users the possibility to add users to it and they will be displayed on a list in a page node.
That could be done with an add-on that reads the xf_snog_forms_answers table and populates the page. ;)

It would need to read the posid (for the form ID) and the questionid (for the proper question). Something like..
Code:
$answerValues = [];
$finder = \XF::finder('Snog\Forms:Answers');
$answers = $finder->where('posid', <form ID>)->where('questionid', <question ID>)->fetch();

foreach ($answers as $answer)
{
    $answerValues[] = $answer->answer;
}

And use $answerValues to populate the page.

But now that's bordering on me supporting the table. :D
 
That could be done with an add-on that reads the xf_snog_forms_answers table and populates the page. ;)

It would need to read the posid (for the form ID) and the questionid (for the proper question). Something like..
Code:
$answerValues = [];
$finder = \XF::finder('Snog\Forms:Answers');
$answers = $finder->where('posid', <form ID>)->where('questionid', <question ID>)->fetch();

foreach ($answers as $answer)
{
    $answerValues[] = $answer->answer;
}

And use $answerValues to populate the page.

But now that's bordering on me supporting the table. :D
Won't this cause any conflicts with existing app forms and how do i use that code XD?
 
Won't this cause any conflicts with existing app forms and how do i use that code XD?
It won't cause any conflicts because the forms system doesn't do anything but write to that table when the option to save answers is enabled for a form. It doesn't do anything else with that table at any time. But that is where my support for the table ends. I simply gave an example of how to read the answers from the table. You (or someone else) would need to develop an add-on to do what you want.
 
Last edited:
Back
Top Bottom