Login Form

#785 – Insert queary for to insert survey details in results table

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, 14 January 2016 22:59 AEDT
Hi Tim

I wanted to know where exactly the insert query is present. I need to check if the survey is already submitted or not ,If yes then instead of insert will update the same table. Please help.
Friday, 15 January 2016 09:45 AEDT 10'
BF Quiz Plus 3 Years
If you are using BF Survey v2, the "My Requests" view allows users to view and edit their existing responses. In BF Survey Plus, it's called "My Surveys". To use this view, users must be logged in at the time of taking the survey.

If you wanted to hack the code, assuming you are using BF Survey v2, then the model in the front end for the view is where you'd want to tap into it, for example /components/com_bfsurvey/models/1results.php
There is an onBeforeSave function that you can manipulate the data before it is saved.
Just be aware that these front end files are generated dynamically, so any changes you make will be overwritten whenever you edit the questions in the backend. If you need to permanently change, you'd need to alter the file /administrator/components/com_bfsurvey/helpers/answertable.php


Follow us on twitter http://twitter.com/tamlynsoftware
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