Add Collapsable Panel to Tab and inline
Posted: 2020-03-31 09:46
Hi Jan, I have created my form very easily with your JV file. Two issues I have though, I am unable to add a collapsable panel to one of my tabs (see code below). The fields disappear from the tab and there is no collapsable panel (this is for row_9)
Also the ProductGroup & ProductName are read only fields, the ProductVariant is a select2. The readonly fields are totally out of sync to the select2 box. I did try and add this but it removed all the tabs and formatting.
thanks for your help
Bryan
Code: Select all
var row_9 = dv.addLayout([3, 3, 5], "Products > Click to Show/Hide", true)
.add(1, ["ProductGroup1", "ProductGroup2", "ProductGroup3", "ProductGroup4", "ProductGroup5", "ProductGroup6", "ProductGroup7", "ProductGroup8", "ProductGroup9", "ProductGroup10", "ProductGroup11", "ProductGroup12"])
.add(2, ["ProductName1", "ProductName2", "ProductName3", "ProductName4", "ProductName5", "ProductName6", "ProductName7", "ProductName8", "ProductName9", "ProductName10", "ProductName11", "ProductName12"])
.add(3, ["ProductVariant1", "ProductVariant2", "ProductVariant3", "ProductVariant4", "ProductVariant5", "ProductVariant6", "ProductVariant7", "ProductVariant8", "ProductVariant9", "ProductVariant10", "ProductVariant11", "ProductVariant12"])
.sizeLabels(3);
dv.addTab( "TechnicalDetail-tab", "Technical Detail", "cog")
.add(row_8)
.add(row_9)
.add(row_10);
Code: Select all
$j(".form-control-static").css("padding", 0);
thanks for your help
Bryan