Forums

How to show form results

Jyri 14 Jun, 2014
Hi,

I am making my first form here:
I have a form with a text box, text area, check box, checkboxgroup and a radio button. And a database where it saves the data. But now I'm a bit lost how to present the results on my webpage. Like if someone fills: Name: Anna, Interests (checkboxgroup): books, sports, Gender: Female. Then how to show that data? Do I use some chronoforms-function, or do I need Chronoconnectivity (which I already installed but it didn't solve my problem) or do I need some other Joomla extension that reads the database?

If someone can point me to the right direction that would already be helpful. I couldn't find the answer from old posts.

Also, the checkboxgroup-field doesn't save anything in the database. Is there some trick to that? All the others work fine. I added [] in the field name, but it didn't help.

Jyri
GreyHead 14 Jun, 2014
Hi Jyri,

How and when do you want to show the saved data?

To save a checkbox or multi-select dropdown please drag a Handle Arrays action into the OnSubmit event and move it up before the Email or DB Save action.

Bob
Jyri 15 Jun, 2014
Hi Bob,

Thank you for the checkbox group tip, I got it working.

About the other problem. I am not sure which is the best way to show my data, I am making a website where people can post kind of adds, questions, and then other people can offer solutions to their problems. So right after posting, the add or a question should appear under "latest questions"-menu button, and then people can view it and there would be an answer button. Hmm, sounds like a forum, when I explain it like that, but I don't intend it to look like a forum though.

First I used that "submit article"-function in chronoforms, but it only allowed me to show one text field, not all the radio button results etc. Then I installed that Chronoconnectivity and played with that, but I wasn't sure what I was trying to do, so I didn't find the answer there either. It is my first website also, to clarify the level of knowledge here.

Jyri
GreyHead 15 Jun, 2014
Hi Jyri,

it sounds as though an article with comments might do what you need. Otherwise you could build a form to show the content and have an 'Answer' submit button.

You need to use a Custom Code action before the Submit Article action to build the article content that you need from the form results. Save the result into the $form->data['introtext'] and/or $form->data['fulltext'] variables.

Bob
Jyri 15 Jun, 2014
Hi,

Okay, thanks. I will look into that. That clarifies it already.

Jyri
This topic is locked and no more replies can be posted.