slightly related - if I try and use
updateFrontEndFields on a data extension, new fields get ignored unless I make
$fields passed by reference - the trouble is that means I get a warning about the function not being compatible
UploadField be used on the frontend?
There was this issue earlier: https://github.com/silverstripe/silverstripe-asset-admin/issues/810
I tend to just use a FileField instead on the frontend
Is UploadField still supported in the frontend for SS4? Can't seem to make it work after hours of digging $fields->push( UploadField::create('Images', 'Upload Images') ); I h...Hide attachment content
its a lot of pain
When I needed more than a FileField, I usually ended up finding it easier to just use one of the nice JS file upload tools (e.g. https://www.dropzonejs.com/) and make a controller for it to upload to
it would have been obvious if I'd just been looping datafields
otherwise it fails validation, and the validation message doesn't show
and if you have a dropdown field in the php side of the field list it must be in the form, even if it's not required
I have a custom form template that grabs named formfields to put them in the correct place
figured it out in the end
anyone able to help my frazzled brain? Why isn't the 2nd' breakpoint being hit here at all? the form just submits and comes back to the user still filled in but not processed...