Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6321 Widget form skip-start umbrella issue
  3. OFBIZ-3920

HtmlFormRenderer : with attribute skip-start, lookup fields are broken

    XMLWordPrintableJSON

Details

    Description

      When you want to merge to form and use skip-start="true" on the second form, all contained lookup are broken. In this case, the javascript used to call Lookup screen are using the form name eg : '<a href="javascript:call_fieldlookupLayer( document.form2.lookupfield, 'Tagert', ...)', but with skip-start, the form name isn't present.
      A possible solution is to force lookup field id, but it's not managed on htmlFormMacroLibrary.ftl. I will submit a patch to make this possible.

      I don't manage problem on descriptionField, this would need to change ModelFormRender and it's a little bit more complicated
      Nicolas

      Attachments

        1. skipStartWithLookup.patch
          2 kB
          Nicolas Malin

        Issue Links

          Activity

            People

              jleroux Jacques Le Roux
              nmalin Nicolas Malin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: