Forums

ChronoForms as a Survey system ? Continued.

MarioP 10 Oct, 2014
This thread is a continuation of ChronoForm as an a Survey system ? possible? which has been locked. I also would like to use the ChronoForms as a survey. I've created a form and now I'd like to show results of the survey on the website. e.g. underneath the survey form.
In the thread I've mentioned, there was a question:

is it possible to export the total results of a chronoform survey into a pie chart?


In reply from GreyHead we have some link unfortunately inactive.
Is this is a post that should be there? FAQ
If yes, is there a posibility to update the solution for ChronoForms V5? I'm not a programmer and I see that the folders structure is different. So I got stuck already in the beginning..
Maybe there's other solution to show current result of the form as a simple counter, like that in the attachment, for example.
MarioP 10 Oct, 2014
I forgot about the attachment...😉
GreyHead 10 Oct, 2014
Hi MarioP,

Yes that is the FAQ that the old post was linked to.

Yes it should still work in CFv5 - though you need to replace /com_chronoforms/ with /com_chronoforms5/

I'm sure it's possible to use CSS and possibly JavaScript to do something though.

I found some examples of CSS based charts here - the CSSPlay one looks as if it would do what you need.

Bob
MarioP 13 Oct, 2014
Hi,
Thank you for interest in my case. In How can I build a chart to show data? FAQ, we have the following instruction

Drag a Custom Element element from the Advanced group into the Preview box.


So, the preview box, I can't find it in the ChronoForms V5. Watching tutorials on youtube concerning ChronoForms V4 I see the tab, but what about V5?
GreyHead 13 Oct, 2014
Hi MarioP,

Max changed the name - in CFv5 it's the Designer tab.

Bob
MarioP 13 Oct, 2014
Thanks. Everything seems to be ok now, but unfortunately it isn't. The chart doesn't display itself. I don't know where the problem lies..
Following the faq ( and your advice) I've place the below code in the Designer tab (custom element).
<?php
echo $form->data['pchart'];
?>

Then I had dragged a Custom Code action into the On Load event and I pasted the code. In the FAQ we also have

drag a Show HTML action into the On Load event


Is the 'Show HTML' same as HTML (render form)? I've already had the action (see attachment) in the 'On load' event so I didn't add it once again. Am I doing right?
What can be wrong?
MarioP 13 Oct, 2014
Attachment
MarioP 13 Oct, 2014
By the way..
I've just figured out that probably the solution is not that what 'm looking for...
As the FAQ says

each time you refresh the page the form will be re-created with new random data


So the chart isn't related with the data being sent by the form, yes? It's just random data...
I'm looking something for displaying current data - I mean, I have a survey and I want to display result of it up to date ( some counter on the website, e.g. below the submit button). Anytime, anybody submit the form, the counter is updating itself . Is there any solution for that? As a very beginner programmer I don't see that option with the solution presented on the FAQ...😟
GreyHead 13 Oct, 2014
Hi MarioP,

Yes, the CFV4 Show HTML action became the HTML (Render Form) action in CFv5.

I'll try to test this out in CFv5 later on and report back.

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