Jump to content

File Field "Required" not working


Soma
 Share

Recommended Posts

I set up a field with .mp3 files to upload. I've set it to "required" in field input settings. But if I create a new page and save it without uploading a file, there's no error message shown. Bug, or am I doing something wrong?

Link to comment
Share on other sites

Required is not supported by most fields at present. So you only see the option if you've got the $config->advanced turned on. It's best to leave $config->advanced turned off, because it's easy to break things with it on and there are some things shown where support is inconsistent. That advanced setting is really meant for when we're developing or adding features to PW, and it's troublesome otherwise. Though we will be having full 'required' support for all fieldtypes soon, perhaps in 2.2, and at that time the 'required' option will show up without advanced mode being on.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...