Login Form

#557 – Change content of form.php

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, 12 March 2015 16:06 AEDT
Kishan
Joomla! version: (3.x)



Hi I tried to change the content in form.php in
(C:\wamp\www\Joomla\components\com_bfsurveytrial\views\4result\tmpl\form.php).
I able to add my one html and php code there it works fine too. But the problem is when the question is edited in joomla administrator view this page gets replaced by old code. I tried this in both BFsurvey trial and 1 subscription pack BF survey. Kindly guide me to how to change the content of form.php ASAP..
 
Thursday, 12 March 2015 16:48 AEDT 5'
Tim
BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Kishan,
Thank you for your interest in BF Survey. The front end is dynamically created based on the questions you create. If you need to make customizations to the output, you will need to create a template override of the view.
In your case, to override the file \components\com_bfsurveytrial\views\4result\tmpl\form.php
you should copy this file into /templates/yourtemplate/html/com_bfsurveytrial/4result/form.php
You can then make whatever changes you like to this overridden file and your changes wont be lost when the front end is rebuilt, or when you upgrade the software. The thing to be aware of is that the template override does not get updated when you alter a question or add a new question, in which case you would still manually need to copy this code from the original view file.

Since BF Survey uses F0F, you can also create media overrides for the javascript or CSS files, for example to override /media/com_bfsurvey/js/4results.js, you could copy this into /templates/yourtemplate/media/com_bfsurvey/js/4results.js

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Thursday, 12 March 2015 18:49 AEDT
Kishan
Thanks For ur quick reply.. Thsi working fine...


Regards,
Kishan
 
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