formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Instantiate FormioWizard Class

Open bohan opened this issue 7 years ago • 1 comments

Setting display to "wizard" returns the following message on the console "You need to instantiate the FormioWizard class to use this form as a wizard" and the form doesn't render on the UI. Instead I get the following message on the UI "Unknown component: custom". Here is the JSON

{
  "title": "My Wizard",
  "type": "form",
  "display: "wizard",
  "components": [
    {
      "type": "panel",
      "title": "Page 1",
      "components": [ ]
    },
    {
      "type": "panel",
      "title": "Page 2",
      "components": [ ]
    }
  ]
}

Using formiojs v3.23.0

bohan avatar Jul 06 '19 22:07 bohan

You may be importing Webform instead of Form. If you use Form it will instantiate the correct class for Webform, Wizard and PDF. If you directly import Webform then it will fail if you try to use a different type.

randallknutson avatar Jul 08 '19 15:07 randallknutson