Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5552

Problems in single form when use-when and position are used together

    XMLWordPrintableJSON

Details

    Description

      The service "renderSingleFormString" check the previous field position to see if the current field must be displayed after the previous field or on a new line.

      When the previous field has a use-when condition that is not valid, it remains as the currentFormField and the next field is compared with this "not rendered" field. If the position of this previous field is the same as the current field, the current is displayed on the next line.

      To reproduce, add in a single form the three fields below :

      <field position="1" name="first"><display description="first"/></field>
      <field position="2" name="second" use-when="true"><display description="second"/></field>
      <field position="2" name="second" use-when="false"><display description="second"/></field>

      The field second is rendered on a new line

      Attachments

        1. OFBIZ-5552 v2.patch
          0.8 kB
          Mekika Leila
        2. OFBIZ-5552.patch
          0.7 kB
          Mekika Leila

        Activity

          People

            jleroux Jacques Le Roux
            mleila Mekika Leila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: