Pro Form: New File field initial files + Submit Button condition buggy?

Hey there,

when I try to load an inital file through a custom method and no image is set yet I get an error.


image
I could setup 2 file fields and set up conditions in Bricks natively, but that might lead to more problems.

Also when i set up a submit button condition like that


the submit button is never disabled, even if the file field is empty.

Am I doing something wrong or is this bugged?

Thanks and greetings

Did you try to output your dynamic data as text to see if it outputs really an URL?
Also, Submit Button Conditions are not working with file states, as files are handled differently by browsers.

Hey,

thanks for your answer. Yeah it outputs and URL and works fine if an image is set. The problem just occurs if the ACF field in question is empty.

Oh, understood. So the request is to completely ignore the initial file if its empty, right?

2 Likes

If I didn’t do anything wrong while setting it up, yeah, I think it shouldn’t throw an error.

Also regarding the validation, I think the “required” toggle in the file field itself also doesn’t work right now.