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

JS Field breaks im used in combination with switchable field and combobox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: High High
    • 1.2.2
    • 1.2.1
    • None

      Steps to reproduce

      1. Add a JavaScript Field into a switchable field in using a combobox like:
      label: Image
      form:
        implementationClass: info.magnolia.ui.javascript.form.FormViewWithChangeListener
        properties:
          imageChooser:
            label: Image
            $type: switchableField
            field:
              $type: comboBoxField
              defaultValue: internal
              layout: horizontal
              datasource:
                $type: optionListDatasource
                options:
                  - name: internal
                    label: Image Dialog
                    value: internal
                  - name: cloudinary
                    label: Cloudinary Widget
                    value: cloudinary
            itemProvider:
              $type: jcrChildNodeProvider
            forms:
              - name: internal
                properties:
                  image:
                    label: Image
                    $type: damLinkField
              - name: cloudinary
                properties:
                  cloudinaryImage:
                    label: Text color
                    $type: javascriptField
                    fieldScript: /headless-ecommerce/webresources/colorField.html
                    height: 50
      1. Open the dialog and try to switch to the part with the js field

      .. Logs, screenshots, gifs...

      Expected results

      .. Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      see: js-field-error.log

      Workaround

      It is working with the $type: comboBoxField.

      Development notes

        Acceptance criteria

              yen.lactue Yen Lac Tue
              tobias.kerschbaum Tobias Kerschbaum
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 0.25h
                  0.25h