Hi,
I am using Moodle version-2020061501.02.
requirement:Here on "Attempt Quiz Now" button click i want to open a popup to capture the photo of the student.
Now i have developed local plugin called "proctoring" under quiz/accessrule, here i have written a javascript alert in AMD repo and that javascript i am calling from "setup_attempt_page" in rule.php of my plugin.
But on click of that button the javascript is not getting called.
The way i am calling javascript is
$page->requires->js_call_amd('mod_quiz-quiz_accessrule_proctoring/photocapture', 'setup');
Please let me know asap how can i call my plugin javascript here.