Html file iframe not rendered

Hi, i’m on frappe v15 and trying to embed google maps on custom doctype using iframe and html field.

this is my setup:

image

but this is what i get

Note: everytime i save, the symbols (< >) get replaced by &lt &gt

please help… thanks

Hi @Cahyadi_Suwindra,

Do you want it like this?

Yes… got it… so i have to inject it from js

this is also what i did

frappe.ui.form.on(‘Test’, {
onload(frm) {
$(‘test_html’).remove()
$(‘

<iframe width=“820” height=“560” id="gmap_canvas"src=“https://maps.google.com/maps?q=636+5th+Ave%2C+New+York&t=&z=13&ie=UTF8&iwloc=&output=embed” frameborder=“0” scrolling=“no” marginheight=“0” marginwidth=“0”>
’).appendTo(frm.fields_dict.test_html.wrapper);
}
});

thank you @NCP

Hmm :sweat_smile:
Nice find from the main source of information.