• Resolved ash2598

    (@ash2598)


    Hi, the plugin really suits the requirements of my website except in one area: is there a way or shortcode that I can use to display the answers and results per current logged in user? means individual results in a page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @ash2598

    I hope you are doing good today.

    Please check our wpDataTables integration, it should cover your request:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#wpdatatables

    Kind Regards,
    Kris

    Thread Starter ash2598

    (@ash2598)

    @wpmudevsupport13 Thank you for your response but I already tried it but it displays the result from all user, I’d like to only display the data from my quiz of current logged in user.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ash2598

    Thank you for your response!

    Forminator doesn’t provide built-in way to display only “user’s own” submissions (form submissions, quiz results or poll voting) currently.

    Two ways to achieve that are either via the wpDataTables integration that my colleague mentioned but you are right – the free version does not provide such feature. There are filters/queries for this available but, unfortunately, only in pro version as far as I’m aware. Furthermore, this would work with forms only out of the box as quiz isn’t storing data about submitting user so it would require some custom code first anyway unless it’d be a “knwoledge” type quiz where you’d ask user for e.g. e-mail address first. This isn’t tested though.

    The other way is fully custom code. However, it wouldn’t be that simple as it would first require quiz to actually save user data (at least – if logged-in user is submitting it, to save user account ID). Then a shortcode could be created to show quiz results and/or response.

    That still would be quite a lot of coding though and I’m afraid providing such a custom code at the moment goes out of the scope of this support. If you feel like giving it a go by yourself then you”ll find API docs here

    https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/

    and that would help you come up with the code to actually fetch quiz/submission data.

    Kind regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @ash2598 ,

    We haven’t heard from you for over a week now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to display the current user accounts records or answers in a page’ is closed to new replies.