Support » Plugin: NgSurvey - Powerful, feature rich self-hosted surveys » Get survey_id and change end_of_survey_message?

  • Resolved datschge

    (@datschge)


    Hello,

    building on the previous topic we’re now trying to show the current survey stats after a user completes a survey. The problem we encountered is that the action hook “ngsurvey_survey_complete” appears not to be capable of changing the JSON response for the final page, whereas the filter hook “ngsurvey_end_of_survey_message” allows to change the final page, but doesn’t include the survey_id required to assemble the stats. Furthermore “ngsurvey_end_of_survey_message” is acted upon before “ngsurvey_survey_complete” so there is no way to combine them.

    How to solve this conundrum? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author NgIdeas

    (@ngideas)

    I added a couple of new parameters to the ngsurvey_end_of_survey_message filter – survey object and response id. Released it with v1.0.7.

    Thread Starter datschge

    (@datschge)

    Excellent, looking forward to that version, thank you!

    Thread Starter datschge

    (@datschge)

    Works great, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get survey_id and change end_of_survey_message?’ is closed to new replies.