Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot sumbit form with required file field #1217

Open
franfran opened this issue Dec 16, 2016 · 4 comments
Open

Cannot sumbit form with required file field #1217

franfran opened this issue Dec 16, 2016 · 4 comments

Comments

@franfran
Copy link

Hi,

Trying to create a custom form field using the document example.

It is a file field and required is true.

I can see the file field in the advance tab. However, even I have the file uploaded, the form keep asking me to input the required file field and I cannot save the Page.

see screen below.

screen shot 2016-12-16 at 6 41 43 pm

I am using Grav v1.1.9 and Admin panel v1.2.5.

Any clue on what could be wrong?

Here is the blueprints

title: testp
'@extends':
    type: default
    context: blueprints://pages

form:
  fields:
    tabs:
      type: tabs
      active: 1

      fields:
        advanced:
          fields:
            overrides:
              fields:
                header.a_sample_field:
                  type: file
                  label: test p field
                  destination: 'user/plugins/testplugin/assets'
                  accept:
                    - image/*
                  validate:
                    required: true
@zanami
Copy link

zanami commented May 4, 2017

Same here, I'm trying to make a front-end form. Clearly a bug.

@flaviocopes
Copy link
Contributor

Yes this is currently a known bug we need to fix it. Related issues. getgrav/grav-plugin-form#106, getgrav/grav-plugin-admin#887

@avxkim
Copy link

avxkim commented Mar 29, 2018

@flaviocopes, it's 2018 already and still not fixed...

@display-flex
Copy link

We have the year 2020.... the bug is the same...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants