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 » 6 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.

    var_dump($displayData['item']);

    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 » 6 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');
      $headers[] = JText::_('COM_COMMUNITYSURVEYS_CSV_HEADER_SAPNO');

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

    and

        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

Bug in the new 5.0.9 version?
  • 14 replies
There's a line in the changelog: * Guests are unable to view the...

Js conflict
  • 3 replies
Hi,   On...

How I could paint comment lines in different colours?
  • 8 replies
How I could paint comment lines in different colours? Sometimes...

Dashboard Recent quizzes
  • 4 replies
Dear support, I would like to show more than five quizzes in the...

No Start topic button
  • 5 replies
Hi there, I've recently installed and updated CJforum. For some...

Subscribe Newsletter