Forums
Am in the views and I want to use the lesson state in fields.
Quiz Results: Lesson State
The state of the lesson for the provided user. Calculated on the fly; can be "Finished," "In Progress," or "Not Started".
Problem is the only state that shows is "In Progress" even when I have completed a course. Question is how do I calculate on the fly to achieve the other states? Thanks.
Hi mwaindegwa,
Hi mwaindegwa,
Can you explain your specific case better please? You are looking at a view that comes with Opigno or you are creating a new view?
I just tested adding the field to the Opigno view "Opigno Quiz Student Views" it it worked correctly. I cannot reproduce this issue you are having.
Best regards
In reply to Hi mwaindegwa, by James Aparicio
Am looking at a view that was
Oh ok,
Oh ok,
Now i understood you. You want to display individual students results for the required lessons a given course has.
For that i would create a new view with a block that has a contextual filter as the course. This view would lists the required quizes for that course and the current user state for that course.
After you have this view, render this view as a field view inside your main view giving it the course id.
You can also just create a php field in the main view and output what you want.
Best regards
In reply to Oh ok, by James Aparicio
Converting lesson state to chart