Edit custom post type gallery with pro forms

On my website, I would like users to update and edit ‘posts’ of a custom post type from a front-end form using pro forms.

I have a custom field group set up as a photo gallery, but when I try to set this up as an ‘file’ option in pro forms I can’t get it to show or work correctly.

The value is set as:
{brf_post_meta:meta_name:{url_parameter:id}}

with the ‘meta_name’ changed to the name of the custom meta like below.

{brf_post_meta:acpt_project_multiple-images_images:{url_parameter:id}}

I have also tried this as all of the following

{brf_post_meta:images:{url_parameter:id}}
{brf_acf_field:acpt_project_multiple-images_images:{url_parameter:id}}
{brf_acf_field:images:{url_parameter:id}}

Is there something I am doing wrong? If so how can I go about doing what I am after?

Regards

Luca

In HTML, File inputs cannot have initial values for security reasons: https://stackoverflow.com/questions/1696877/how-to-set-a-value-to-a-file-input-in-html-to-a-client-side-disk-file-system-pat

That’s technical not possible.

So is there no way for users to edit a gallery of images on the front end?

2 Likes

I would love to hear an answer. This can’t be just it… there must be a good solution for this. I think I am struggling with this problem since a week.

I managed to pre-fill the gallery, but still can’t make the update on the field work.

@Daniele please advice! Tried multiple Update types, but none worked. The result: empty gallery field.

The payload that’s being send on form submit contains the entire image object. Let me know if you need more details.