Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

How to write autoForm properly in Jade? #211

Open
rikyperdana opened this issue Feb 12, 2017 · 3 comments
Open

How to write autoForm properly in Jade? #211

rikyperdana opened this issue Feb 12, 2017 · 3 comments

Comments

@rikyperdana
Copy link

rikyperdana commented Feb 12, 2017

{{#autoForm collection="Posts" type="insert"}}
    {{> afQuickField name="title"}}
    {{> afQuickField name="picture"}}
    <button type="submit" class="btn btn-primary">Insert</button>
{{/autoForm}}

Inserting those codes directly in Jade only gives me App Crash error
What should I do?

@gantrim
Copy link

gantrim commented Apr 28, 2017

Not sure if there is another way to do it, but here is what I do:

+autoForm collection="Posts" type="insert"
   +afQuickField name='title'
   +afQuickField name='picture'

@rikyperdana
Copy link
Author

It's not working either. Is it really insert into database with those lines?
Here is my packages list
aldeed:autoform 5.8.1
aldeed:collection2 2.10.0

@gantrim
Copy link

gantrim commented Sep 13, 2017

Just checked my code. I've been using single quotes for the afQuickField Names, not sure if it makes a difference. It's been working for my enterprise app for about 3 years now. Is 'picture' a file type field? Can you copy and paste the specific error you are getting?

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

No branches or pull requests

2 participants