I am making a wordpress widget that creates a slide show. I would like it to support a dynamic number of images in the slide, so I need to add an extra input field for each new uploaded image in the admin form of the widget.
My problem is that I cannon figure out how to pass the values of the dynamicly created fields into the widget update()
function.
I have an array that holds the image paths in the back-end of the widget and my goal is to fill that array with the values of the created input fields.
Knowing how widgets work I believe this is not possible (to have dynamic number of input fields). What you can do since you enter plain text anyway is to add all image paths in one input field with some separator and than split when displaying on front end.