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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

Forms, UploadField, frontend valiadation


Go to End


2 Posts   1237 Views

Avatar
baduras

Community Member, 4 Posts

18 March 2015 at 1:31am

Hello,

I try to make a frontend form, which contains UploadField. I have problem with validation of this field. Validation message does not appear and it seems the whole form is refreshed (all filled values are erased).

Thank you for help.

Avatar
Pyromanik

Community Member, 419 Posts

26 March 2015 at 1:54am

It is better to use FileField on front end forms, as UploadField is more of a 'live' solution that utilises javascript & ajax to work it's magic.
This is usually undesired on a public interface.