Service mod_feedback_process_page error

Service mod_feedback_process_page error

by Aniket Sankpal -
Number of replies: 2

Hi,

I am using Moodle 3.3 for this.

I have created one feedback form with one numeric input question and trying to submit the feedback form through web service function. "mod_feedback_process_page".

My actual service call is:

http://mylocalhost/xampp/server/moodle/webservice/rest/server.php?moodlewsrestformat=json&feedback=5&wsfunction=mod_feedback_process_page&wstoken=55dae96fa2449dc1a30cb24c5bd5366c9&moodlewssettingfilter=true&page=0&responses[0][name]=numeric_id&responses[0][value]=20

Which returning:

{"exception":"invalid_parameter_exception","errorcode":"invalidparameter","message":"Invalid parameter value detected"}

Does any one know what will come here in numeric_id and why it is giving an error.


Average of ratings: -
In reply to Aniket Sankpal

Re: Service mod_feedback_process_page error

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi,

this is the data sent by the app for a numeric question:

lessonid:27

pageid:185

data[0][name]:_qf__lesson_display_answer_form_shortanswer

data[0][value]:1

data[1][name]:answer

data[1][value]:1

data[2][name]:id

data[2][value]:201

data[3][name]:pageid

data[3][value]:185

data[4][name]:sesskey

data[4][value]:cAFmHCU8H8

review:0

moodlewssettingfilter:true

moodlewssettingfileurl:true

wsfunction:mod_lesson_process_page

wstoken:0d1140...

The values of sesskey, pageid, id, etc. are inside some input type="hidden" that are returned when retrieving the page.

Kind regards,

Dani

In reply to Aniket Sankpal

Re: Service mod_feedback_process_page error

by henry freire -
Hello, I have the same problem, were you able to solve it?