I have succeeded in creating users, enrolling them to courses containing feedback activity modules and those enrolled users are able to complete the feedback forms, all this through the WS API. Everything seems to work as advertised, that is really cool 🙂
Unfortunately I have somewhat limited understanding of the inner workings of Moodle code base. In particular, currently I do not understand the following:
Can I do form validation of feedback forms through API?
It seems that mod_feedback_process_page returns warnings array, but in my case it is always empty for whatever reason.
Array
(
[jumpto] => int
[completed] => int
[completionpagecontents] => string
[siteaftersubmit] => string
[warnings] =>
Array
(
[0] =>
Array
(
[item] => string
[itemid] => int
[warningcode] => string
[message] => string
)
)
)Should I use something else than mod_feedback_launch_feedback and mod_feedback_process_page in order to get the feedback form validation info through the API and show the possible errors on the form?Any ideas or pointers to relevant info are appreciated.