How to pre-populate file upload fields?
-
Ok so I know you can pre-populate text fields in Caldera Forms like this:
add_filter('caldera_forms_render_get_field', 'prepopulate_text_field'); function prepopulate_text_field($field) { $field['config']['default'] = 'Prepopulate with this'; }
But how would I pre-populate a File Upload field with an image (assuming the image is saved somewhere as a WordPress attachment)? Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to pre-populate file upload fields?’ is closed to new replies.