Problem updating a response with file field by API V5

0

Hi all.

I’m updating a survey response with the PHP v5 Library. The problem is that I have some file fields and I’m loosing the answer field and the answer id when I send the method save.

I’m doing something like this call:

//getting the surveyResponse
$responses = $survey->getResponse($id);

Updating the answer for a text field
$responses->survey_data[31][’answer’] = “xxxxxxxx”;
$responses->save();

Before the update call:

[8] => Array
(
[id] => 8
[type] => FILE
[question] => Archivo XML
[section_id] => 1
[answer] => xxxxxxxxx.xml
[answer_id] => 10005
[shown] => 1
)

After the update call:

[8] => Array(

[id] => 8

[type] => FILE

[question] => Archivo XML

[section_id] => 1

[shown] => 1

)

How can I solve this problem?

Best regards.

Carlos Berges asked
    ×

    Login

    Question stats

    • Active
    • Views744 times
    • Answers0 answers
    • Followers1 follower