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 » one year 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.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS ToolsCjFit | CjBlog

    Thank you said by: teojerah

  • Re: Special Fields Not Showing In Report and CSV

    by » one year 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

Trending Topics

Error in search
  • 3 replies
Why I have error by this...

View Author Profiles
  • 3 replies
In description of your script you have written: "Users can create...

embedded poll has no sharing options or picture
  • 5 replies
Hi, I'm testing out embedding a poll and it works, but votes are...

Why is each share code for same poll different?
  • 3 replies
Hi there, My social media manager is telling me that she can't use...

Image links are broken in survey
  • 1 reply
I've added images in the article description of the survey question,...