Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Frontend Upload field and AJAX

Go to End



Community Member, 541 Posts

27 February 2014 at 11:23pm

Edited: 27/02/2014 11:24pm

Hi all,

I am trying to load an UploadField via AJAX into a frontend view. I have added (I belive) all the JavaScript dependencies (jquery, jquery ui, entwine, uploadfield, etc) via requirements, but the relevent JavaScript simply fails to execute when the field is loaded.

I have tried adding the field to the page's form manually then refreshing the field and relfreshing the page and then the field works as expected, so I am assuming I have to add an entwine initiliser to my AJAX callback?

If so, any ideas what?

Many thanks in advance,


Edit: I am using Silverstripe 3.1 with no modules installed.