Hi there,
is it possible to pre-populate an image field? It does not seem to have that option. Is there maybe a workaround?
Hi there,
is it possible to pre-populate an image field? It does not seem to have that option. Is there maybe a workaround?
The image field is a standard HTML file upload ( type="file" ) field and can't be pre-populated. It's designed that way primarily for security reasons.. it's not a Gravity Forms limitation, but just how the input works.
For example, someone could pre-populate the field with the path to a common file on your computer that might contain sensitive information.. they could hide the field from view and when you submit the form you unknowingly upload that file with your grandma's super secret double chunk chocolate chip cookie recipe or whatever it might be.
Hi Kevin,
ok understand that. Maybe pre-population is not what I need then, or have to work without. Can I change the value of an image field though before submission? If $entry[5] would hold the value of an image field, could I populate that with a hook/filter like gform_pre_submission or gform_post_data?