OdooWiki OCA HUB

Survey Form.io

survey_formio folder_open OCA/survey open_in_new
Uncategorised License: AGPL-3

This module adds compatibility bewtween form.io and Survey. It adds a function on survey.survey that generates a form.io compatible JSON that represents that survey. It also adds a function to generate a survey.user_input from a JSON returned by form.io. Use survey.survey::generate_formio_json() to get the json representing a survey that can be rendered using the form.io widget. Use survey.survey::user_input_from_formio() to create a user_input with the answer from form.io.

It does not work with question of type 'matrix' because there's no corresponding compoment in form.io.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

This module lets you export an Odoo survey as a form.io compatible JSON and import answers coming back from a form.io form into a survey answer record.

This module connects Odoo surveys with the external form.io form builder. It does not add any new menu or screen; it adds technical functions on the existing survey and survey question records.

On a survey, you can generate a JSON description of the whole survey that form.io can render. The JSON includes the survey title and one component per question, using the question title as the label and a key based on the question identifier. Question types are translated to form.io equivalents: short text, long text, number, date, datetime, single choice (radio buttons) and multiple choice (check boxes). Mandatory questions are marked as required in the generated form.

When form.io returns answers, you can create a new survey answer or update an existing one from that data. The module converts the incoming values to what Odoo expects: datetimes are converted to UTC, dates are trimmed to the day, numbers become text, single-choice answers are cleaned of their prefix, and multiple-choice answers are turned into the list of selected options only. Each answer is then saved on the corresponding question.

Some survey features are not supported: matrix questions are skipped, survey pages are not handled, and several validation settings (text length, numeric min/max, date min/max, error messages, column layout, comments) are not carried over to form.io.

Depends on

survey
Models and fields (2)
  • survey.survey · extends an existing model
  • survey.question · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.