getodk / web-forms

ODK Web Forms enables form filling and submission editing of ODK forms in a web browser. It's coming soon! ✨
https://getodk.org
Apache License 2.0
6 stars 1 forks source link

Make Central show a form preview using web forms #24

Open lognaturel opened 4 months ago

lognaturel commented 4 months ago

Blocked by #20 Blocked by #29

E.g if the preview button is alt-clicked

sadiqkhoja commented 4 months ago

Can we start shipping it to our internal servers like dev and test? So that QA and the team in general start playing with it

lognaturel commented 4 months ago

Yes, we can do dev or another dedicated server, for sure. I'm a little more hesitant with test because that one gets updated periodically for the purpose of QA and it might be a little more annoying to maintain changes that are not in git. Or maybe not if they don't touch the same code paths? @sadiqkhoja maybe something to discuss with the Central folks?

sadiqkhoja commented 2 months ago

How to use @odk-web-forms/ui-vue in Central

  1. Import @odk-web-forms/ui-vue as npm package in central-frontend from the file system
  2. Install the exported plugin by adding app.use(ThemePlugin) in container.js
  3. Add the exported component anywhere in the application: <OdkWebForm :form-xml="formVersionXml.data" @submit="handleSubmit" />