Hawei
February 3, 2025, 9:56am
1
Hey there,
when I try to load an inital file through a custom method and no image is set yet I get an error.
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.
Hawei
February 3, 2025, 10:12am
3
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.
Daniele
February 3, 2025, 10:54am
4
Oh, understood. So the request is to completely ignore the initial file if its empty, right?
2 Likes
Hawei
February 3, 2025, 11:04am
5
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.