Hi, I am trying to have a page on a website which each time it is visited the images changes.
I have made a dataset and have an image on the page (not linked) the code used is:
Thanks for response, yes this only thing I could find to do what I needed I have changed the data link but can’t get it to work on my site I have looked at other site everything seems the same
That can’t be it. A field key cannot start with a capital letter. You probably just updated the field name (not the field key) and this’s not relevant to your code. But as long as your code works…
Correct, the field name was capital I which I made into lowercase and still didn’t work so I delete and renter the data using lowercase i at the start it worked…thanks again J.D.
If you want to make sure it won’t throw an error even if some of your records are missing the image, then put the following line after line 12 (in your screenshot):