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

The text field group requires a field name otherwise it throws an error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0
    • None
    • None
    • None

    Description

      If I create a text field group, the dialog just states that I am unable to reference the text fields unless I give the group a name. Since the field is not required, if I leave it empty (because I don't care about referencing the text fields ) I get the error below.

      I suggest to simply use default group names (prepopulate the group name with group-1 to n). And make the field mandatory. Also, the template should probably handle it more gracefully if no such group name exists - it should work because the group name is not required.

      FreeMarker template error!

      Expression content.controlName is undefined on line 3, column 12 in form/paragraphs/formGroupEdit.ftl.
      The problematic instruction:
      ----------
      ==> ${content.controlName} [on line 3, column 10 in form/paragraphs/formGroupEdit.ftl]
      ----------

      Java backtrace for programmers:
      ----------
      freemarker.core.InvalidReferenceException: Expression content.controlName is undefined on line 3, column 12 in form/paragraphs/formGroupEdit.ftl.
      at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
      at freemarker.core.Expression.getStringValue(Expression.java:118)

      ---------------

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmiyar Teresa Miyar
              kraft Boris Kraft
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD