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

formageExclude broken #100

Open
bstahlhood opened this issue May 23, 2014 · 3 comments
Open

formageExclude broken #100

bstahlhood opened this issue May 23, 2014 · 3 comments
Assignees
Milestone

Comments

@bstahlhood
Copy link
Contributor

I added

model.formage = {
formageExclude: ['field1', 'field2']
}

The fields are still retrieved in the form.

@refack
Copy link
Member

refack commented May 24, 2014

Yep...
There is a different way to exclude fields and that is to add editable: false attribute to the schema field as in

    field1: { type: Number, editable: false }

@refack refack added this to the 2.7.x milestone May 24, 2014
@refack refack self-assigned this May 24, 2014
@bstahlhood
Copy link
Contributor Author

@refack That works well. Thank you. What about array fields?

@bstahlhood
Copy link
Contributor Author

@refack Yeah, editable: false is broken for Array fields too. For array fields with a inner schema containing a ref, it still shows the field and then wipes out all the embedded ObjectIds on save.

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

2 participants