Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include additional Formio form metadata in REST responses #38

Open
baddlan opened this issue Feb 26, 2018 · 0 comments
Open

Include additional Formio form metadata in REST responses #38

baddlan opened this issue Feb 26, 2018 · 0 comments
Assignees
Labels

Comments

@baddlan
Copy link

baddlan commented Feb 26, 2018

Besides the form schema, some Formio form metadata determine the type of form to render, namely the display property.

Currently the /scenarios/{uuid}/form endpoint in Services and Tasks only returns the schema which is passed in as the Formio renderer's components property as follows:

{
  "id": "pay-taxes",
  "method": "POST",
  "action": "/scenarios/56e3b33e-fc2a-4e61-b1fe-0935aa9e26ed/submissions",
  "type": "formio",
  "schema": [
    { Component 1 ... },
    { Component 2 ... },
    ...
  ]
}

We need to inject the form display property somewhere in there as described in https://github.com/formio/formio.js/wiki/Form-JSON-Schema#form-json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants