Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-388

Hidden form fields are not i18n enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce

      1. Create a form on a multilingual site
      2. add a hidden field
      3. edit hidden field and try to set a different value per language

      Expected results

      Most (all?) of the other form fields can have translated values, so it's reasonable to expect 'hidden' to also have the capacity to have translated values (we want to use this to pass language as a parameter to the form processor)

      Actual results

      There's no language selector in the edit dialog.

      Workaround

      We've tried to use decoration to add i18n=true to the field value, but without success - it refuses to apply the decoration. I can't tell if this is my fault, or if it's not possible to decorate dialogs, or if it's because the dialog is bootstrapped into config rather than part of a lightmodule.

      Development notes

      It should be as simple as adding i18n:true to formHidden.yaml for the 'value' field.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              miruela Mercedes Iruela
              ahutchison Antony Hutchison
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD