Hi!
I am creating a website and want to add a profile picture from an API. I can find the back-end code but cannot find how to create a field of which the type is “image”. I can see in the Dynamic page creation that the field type is available.
Where can i select it in the Menu?
Hey Anand,
You can place any random image in your dynamic page and then load the image you’ve obtained in the backend by using something like this:
import {imageGet} from "backend/module";
$w.onReady(async function() {
let imageSrc = await imageGet();
$w('#image1').src = imageSrc;
} );