I would like to generate before a form in my html an overview of all the existing images (thumbnail) format on the webpage.
So the users can select one photo that will copy on do the form also in this page. Submitting the form will only send the number of the selected images and all the data that are entered in the form. I can’t find a way how to do this:
This is the base in html for selecting the image – based on radiobuttoms but disabled via CSS). By this ways you can only choose one image. The aim is via javascript copy the selected reference into the form element that follows.
See example of the html:
`not used`
`hidden`
`not used`
`hidden`
Later on the radio button will be formatted by 4 on a line and will displaying all the images that are in one subdirectory.
How can I do this that the “src” element refers to an image of the folder. I have already a simulater application that generate a form base on data in Excel and there I pass the info using var tmp = HtmlService.createTemplateFromFile(‘form.html’); in combination with a variable tmp where everything I contains all the values I like to use in the html. And this works fine.
Anyone any idea?
Thanks.
a html containing list img (view format) from a specific google drive.
Peter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.