Im new in Frappe world. Im having some issues trying to add an employee photo in a HTML custom block.
I tried this:
HTML:
<img id="imageUser" class="user-image" alt="Imagen de Usuario">
JS:
const urlParams = new URLSearchParams(window.location.search);
const imageUser = urlParams.get('imageUser');
document.getElementById('imageUser').src = imageUser;`Preformatted text`
type or paste code here
But I only get this:
Could someone give me some help, please?
Thanks in advance.
I update the selector to match with container ID, but it still not working.
About your question, I dont have an answer, as I said later, Im not experienced with frappe nor js, so Im just trying.