diff --git a/frappe/website/js/web_form_class.js b/frappe/website/js/web_form_class.js index cfca46ebf6..8c1c80cd84 100644 --- a/frappe/website/js/web_form_class.js +++ b/frappe/website/js/web_form_class.js @@ -75,6 +75,14 @@ export default class WebForm { if(doc) { this.field_group.set_values(doc); } + + setTimeout(() => { + this.field_group.fields_list.forEach((field_instance) => { + if (field_instance.df.fieldtype === "Attach" && field_instance.get_value().match(".(?:jpg|gif|jpeg|png)") ){ + field_instance.$input_wrapper.append(``); + } + }); + }, 500); } get_values() {