Login Form

#758 – Let users see their results

Posted in ‘BF Survey’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 26 November 2015 04:23 AEDT
David Henry
Joomla! version: 3.4.5

My client would like to let their members see what they have entered after the survey, is this possible?

David
Thursday, 26 November 2015 09:37 AEDT 5'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi David,
Providing the person filling out the survey is logged into your Joomla site at the time of taking the survey, you can allow them to view (and potentially edit if you allow) their responses via the my surveys menu item.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Friday, 27 November 2015 04:20 AEDT
David Henry
Hi Tim,

I've tried setting a menu link to results but it gave me everyone's details which I could then drill into, is this because I'm a super admin?

What I need is a list of the answers per user, and only their answers visible to them, but not editable, is there a solution for this?

Would you be able to quote me to build a one page user result page with a corresponding menu item?

David
Tuesday, 08 December 2015 23:31 AEDT 60'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi David,
I've had a go at altering the my surveys view so that it is read only and doesn't allow users to edit their responses.

Add a new menu item, type = BF Survey -> "My Requests"
Then assuming your category id is 1, copy the following files
/components/com_bfsurvey/views/1result/tmpl/form.php copy to /components/com_bfsurvey/views/1result/tmpl/read.php

/components/com_bfsurvey/views/1result/tmpl/form.form.xml copy to /components/com_bfsurvey/views/1result/tmpl/form.read.xml

Now edit the new read.php file. At the bottom change the submit button to a link back to the my surveys view, for example
	<input type="submit" id="task_button" name="task_button" class="btn btn-large" value="<?php echo JText::_( 'COM_BFSURVEY_CATEGORIES_FIELD_SUBMIT_BUTTON_TEXT_DEFAULT' ); ?>" />


//change to
<?php
echo "<br><a href='".JRoute::_('index.php?option=com_bfsurvey&view=myrequests&Itemid=167')."'>".JText::_( 'back to my surveys')."</a><br>";
?>



Now edit the file /components/com_bfsurvey/views/myrequests/tmpl/default.php
Change the layout in the link from form to read
$link 		= JRoute::_( 'index.php?option=com_bfsurvey&view='.$row->catid.'result&layout=form&id='.(int)$row->id );


//change to
$link 		= JRoute::_( 'index.php?option=com_bfsurvey&view='.$row->catid.'result&layout=read&id='.(int)$row->id );



Now as long as the user is logged in at the time of taking the survey, they should now see all their responses in the my requests view, and they will not be able to change the responses.

Let me know how you go.

regards
Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Tuesday, 08 December 2015 23:47 AEDT
David Henry
Thanks Tim,

Before I go into this I've one question, would this allow them to see everything on the one page?

The reason I ask is because this is what the client is requesting.

David
Wednesday, 09 December 2015 00:02 AEDT 5'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi David,
Depends on whether the original form they fill out has all the questions on a single page, or whether it is multi-page. If the original one was multi-page, then you would need to alter read.php to just show all the fields on the one page.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Wednesday, 09 December 2015 02:15 AEDT
David Henry
The form had about 18 steps and 70 odd questions.

What I'm looking for is a new option rather than a hack to the current system.

We have our own Joomla advanced member management which has considerable amount of details per member. It might be easier for us to build it into this.

But if you could give a solution for a one page survey result page it would be best as your the expert.

The questions we asked are great for the survey but they also asked the members to consider their own qualities, this is why we need a quick reference point for them to check what they answered.

what do you think, are you interested?
Thursday, 10 December 2015 19:02 AEDT 5'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi David,
I've got Jeff working on this for the next version release. We are looking at adding an option for read only in the my requests view that will automatically generate the code above. We are also looking at adding an option the display the results on one page.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Thursday, 10 December 2015 20:51 AEDT
David Henry
That sounds great, I've only two questions...

When do you think it'll be ready?

Would you like us to help out in any way?
Thursday, 10 December 2015 21:22 AEDT 5'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi David,
I expect to have something to show by mid next week.
Thanks for the offer of assistance, when the changes are ready I'll send them through for you to test.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Thursday, 10 December 2015 21:23 AEDT
David Henry
Brilliant, thanks.
d
Wednesday, 13 January 2016 16:25 AEDT
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top