New question type plugin based on essay question type

Re: New question type plugin based on essay question type

by Евгений Мамаев -
Number of replies: 0
Picture of Plugin developers
Thank you, I have looked at code and have overridden get_expected_data method.
Now it has the following code

$expecteddata=array();
$expecteddata['paragraph1']=PARAM_RAW_TRIMMED;
$expecteddata['paragraph2']=PARAM_RAW_TRIMMED;

return $expecteddata;

I can see, that these parameters get submitted as

Content-Disposition: form-data; name="q26:1_paragraph1"

123
-----------------------------59511202423693
Content-Disposition: form-data; name="q26:1_paragraph2"

456

Is there a method to get these values, check them prior to store them?