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?
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 support
-
Plugins, theme and development
. I don't answer to private message.