Hi ;

i had created my own special fields and user can select from question and the result of this special field is also capturing data from survey

The only problem i am facing now is it is now showing up in consolidated report view and also it is not being exported in the CSV export result

Can please point to me which part of the creation process i had miss out to populate

Thank you in advance

17156_1_CustomField_NoShow.jpg (You do not have access to download this file.)
Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
  • Re: Special Fields Not Showing In Report and CSV

    by » 3 months ago

    In your consolidated report question layout file (layouts/LAYOUT/reports/consolidated/), add a var_dump and see what data getting populated. This way you can understand what you missed.


    CSV report is generated from getCsvData function in administrator/components/com_communitysurveys/models/reports.php 

    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    CjFitCjForum | Polls | Answers | Quizzes | Quotes | Surveys | GPS Tools | CjBlog

    Thank you said by: teojerah

  • Re: Special Fields Not Showing In Report and CSV

    by » 3 months ago

    For the display part in consolidated and individual response ; need to add the additional special field to the following files

    LAYOUTNAME/reports/consolidated (consolidated.php > add CS_SPECIAL_DEPT => 'dept',)

    LAYOUTNAME/results folders (question.php ,add CS_SPECIAL_SAPNO => 'sapno',)

    For the csv export ;

    inside the administrator/components/com_communitysurveys/models/reports.php 

    In the getCsvData function ;

    need to add the following ;

      $headers[] = JText::_('COM_COMMUNITYSURVEYS_CSV_HEADER_DEPT');

       $responseArray[] = $response->sapno;
       $responseArray[] = $response->dept;


        case CS_SPECIAL_DEPT: // Special - Name
        case CS_SPECIAL_SAPNO: // Special - Name


You do not have permissions to reply to this topic.

Powered by CjForum

Site Search

Trending Topics

kml file not working in demo site
  • 3 replies
Hi,I uploaded one kml file to your demo site...

Change date format and where are the charts?
  • 1 reply
Hi,how do I change the date format from yyyy-mm-dd to dd-mm-yyyy? I...

User name displayed twice ?
  • 1 reply
Hi,I noticed that the used name is displayed twice:Once on the...

how put a banner in community answere?
  • 1 reply
how put a banner in community answere?  

Edit the content of Email Notification
  • 1 reply
where to edit the content of Email Notification? Thanks.

Subscribe Newsletter