diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 1119eeb..76ada06 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -480,12 +480,13 @@ }, "84712": { "renderHTML": (section_id) => { let html = defaultStyle; + const id = "84712"; - html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Text', globalInputFormsObjValues['TextOne']['text1'], section_id); - html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', globalInputFormsObjValues['TextOne']['font'], ['LT Beverage', "Rose"], section_id); - html += SHX_IFC_genSwatchSelect('shx-surface_finish', 'Vordere Oberfläche', 'Vordere Oberfläche', globalInputFormsObjValues['TextOne']['surface_finish'], {"matte": {name: "Matt", imgUrl: "{{ "SHX-OberflaecheMatte.gif" | asset_url }}"}, "silk": {name: "Spiegelnd", imgUrl: "{{ "SHX-OberflaecheSilk.gif" | asset_url }}"}}, section_id); - html += SHX_IFC_genColorSelect('shx-color', 'Farbe', 'Farbe', globalInputFormsObjValues['TextOne']['color'], [], section_id); + html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Text', globalInputFormsObjValues[id]['text1'], section_id); + html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', globalInputFormsObjValues[id]['font'], ['LT Beverage', "Rose"], section_id); + html += SHX_IFC_genSwatchSelect('shx-surface_finish', 'Vordere Oberfläche', 'Vordere Oberfläche', globalInputFormsObjValues[id]['surface_finish'], {"matte": {name: "Matt", imgUrl: "{{ "SHX-OberflaecheMatte.gif" | asset_url }}"}, "silk": {name: "Spiegelnd", imgUrl: "{{ "SHX-OberflaecheSilk.gif" | asset_url }}"}}, section_id); + html += SHX_IFC_genColorSelect('shx-color', 'Farbe', 'Farbe', globalInputFormsObjValues[id]['color'], [], section_id); return html; }