How can I add custom dropdown into product line contain in line item…?
I have added dropdown by it’s existing code but it not worked. I have added dropdown from studio and put same name in js file of dropdown.
It saved data into database but could not value are selected when I open it in edit mode.
Text box are coming filled when I put form in edit mode
I am putting my code…here
var z = tablebody.insertRow(-1);
z.id = 'product_quote_form' + prodln;
// valve type start
var type_opt = "<option value=''>Select type</option><option value='2'>Ball </option> <option value='6'>Check </option> ";
var a = z.insertCell(0);
a.colSpan = "2";
a.style.color = "rgb(68,68,68)";
a.innerHTML = "<span style='vertical-align: top;' class='product_item_description_label'> Type : </span>";
a.innerHTML = "Valve Type: <select name='product_type_c[" + prodln + "]' id='product_type_c" + prodln + "' class='' > "+ type_opt +"</select>";
if (typeof currencyFields !== 'undefined'){
currencyFields.push("product_type_c" + prodln);
}
Please help me to out this