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

    (@mahype)

    Can you give me an example what you are meaning?

    Greetings,

    Sven

    Thread Starter Nugerama

    (@nugerama)

    Hi Sven. I’m turning out a list of surveys (forms) for users to fill out but I wanted to omit or in some way differentiate surveys that they’d already submitted. I have Giving access to: All members of site and forbid multiple entries checked so I only needed to check whether the current user’s ID is stored against a submission which I could see from the table that it was.

    Anyway, I dug around in the code and found:

    $participated = ( torro()->forms()->get( $form->ID )->has_participated() ) ? true : false;

    Which when used in my loop does exactly what I need it to. Perhaps it could be added to the documentation at some point as I’m sure other users would find it useful.

    Thanks for getting back to me
    Kevin

    Plugin Author Sven Wagener

    (@mahype)

    That’s great! ??

    We will see. I also would like to have a function which only gives back the forms, the user should see. And also I have to extend the documentation, you’re right. I will think about that and add a ticket for that on Github.

    https://github.com/awsmug/torro-forms/issues

    Greetings,

    Sven

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Check Results for User ID’ is closed to new replies.