Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Validation against API submitted results

  • trumpcard21
  • trumpcard21's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 9 months ago #122662 by trumpcard21
Validation against API submitted results was created by trumpcard21
Hi,

I was doing some testing today and it appears that when a result is submitted against the API using add_result the validation isn't being triggered. The API always replies as if the entire result was stored, even if mandatory fields are missing, if the data is improper, and results are not stored against the database. So long as the permissions and session key are valid and the JSON isn't malformed it will appear to succeed. Am I correct that there isn't any way to create a survey with validation being performed against API calls?

Thanks.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #122671 by DenisChenu
Replied by DenisChenu on topic Validation against API submitted results
Hi,

WIth API call : no validation is done, like in "edit answers" if i don't make an error.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose