Description
When a from widget has the attribute of skip-start="true", the javascript creation references the incorrect DOM object.
ie
<form name="beginForm" type="single" skip-end="true>
</form>
<form name="middleForm" type="single" skip-start="true">
<field name="date"><date-time/></field>
</form>
will result in the creation of the following
javascript call: javascript:call_cal(document.middleForm.date,''); should instead be:
javascript call: javascript:call_cal(document.beginForm.date,'');
or even better the super form name should be a variable.
The second option would require an additional attribute in the form definition.
Attachments
Issue Links
- is related to
-
OFBIZ-3920 HtmlFormRenderer : with attribute skip-start, lookup fields are broken
-
- Closed
-
- relates to
-
OFBIZ-6139 Lookup fields break when used with a form having skip-start="true"
-
- Closed
-