Uploaded image for project: 'Java Script UI (App and Dialog Fields)'
  1. Java Script UI (App and Dialog Fields)
  2. JSFIELD-44

Empty `formFields` property during 'init' action

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 2.0.3
    • 2.0.2
    • None

    Description

      Steps to reproduce

      1. Start dx-core webapp with `magnolia-ui-framework-javascript` module (version 2.0.2)
      2. Use ui-framework-javascript-examples as light modules, and add `console.log(event.data.state)` to any HTML file under form-fields-lm/websresources. For example:  
      3. Open Pages app, create new page, choose `form-fields-lm` template, fill the dialog
      4. Open the newly created page
      5. Open Developer Tools, observe the Console
      6. Click on "Edit page properties"
      7. Check the console log, Observe the `formFields` value

      Expected results

      8. formFields will have values, eg:

      {
      changeHeight: "",
      colorField: "",
      conditionalField1: "",
      conditionalField2: "",
      emailField: "aa@aa.cz",
      textField: "Egestas Nibh",
      withParameters: ""
      }
      

      Actual results

      8. formFields is empty:

      []
      

      Note

      Try again with `magnolia-ui-framework-javascript` module version 2.0.1
      The `formFields` won't be empty

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              sgeschke Sebastian Geschke
              mhaderka Martin Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: