I am new to moodle ,currently i am working on questionnaire module, in which we create questionnaire for courses(created by teacher , which are viewed by student on course detailed page there they will answer ) . now i want to know which user created that questionnaire (i.e userid ). I have been searching for while but didnt found any answer.
Share
If the questionnaire table has a createdby field, then you can use that, otherwise, you’ll have to do a search through the logs table like this: