Hi Maarit,
That’s an interesting concept. It has some similarities to this support question - although that was focused on getting data from another form, not another part of WordPress.
With a little bit of code using the gravityflowformconnector_update_field_values filter you should be able to get what you are after.
If the notes below aren’t enough to get you towards solution, drop Gravity Flow support a message and we’ll see how we can assist further to it.
- Use the Form Connector Update Fields step type.
- Select the same form and entry ID (self) options along with one field for the basis of an “irrelevant” lookup.
- Use the gravityflowformconnector_update_field_values to do your “actual search” against the media library to find the right filename. Something along these lines perhaps? Ultimately you would store the path into a text or url field on the $new_entry which the filter returns.
- Then you could use a merge tag for the field in the confirmation. Or perhaps 2 different confirmation based on if a match was found.
If you do not need to keep a record of the searches made, the Form Connector also has a delete an entry step type that you could use to delete daily/etc.
Regards,
Jamie