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

orion.collection with hidden attribute is not fully hidden #426

Open
shingo0620 opened this issue Jul 25, 2016 · 1 comment
Open

orion.collection with hidden attribute is not fully hidden #426

shingo0620 opened this issue Jul 25, 2016 · 1 comment

Comments

@shingo0620
Copy link

In the schema, I have an attribute seq as an auto-increase sequence num, I don't want it to show up with admin panel users, so I set it schema with

  seq: {
    type: Number,
    autoValue: function(){
      if(this.isInsert){
        return getNextSequence('TagCategories');
      } else {
        this.unset();
      }
    },
    autoform: {
      afFieldInput: {
        type: 'hidden'
      }
    }
  }

In the insert/update form the input field of this attribute is hidden, but the label is not hidden

image

@applesin
Copy link

applesin commented Mar 1, 2017

  seq: {
    type: Number,
    autoValue: function(){
      if(this.isInsert){
        return getNextSequence('TagCategories');
      } else {
        this.unset();
      }
    },
    autoform: {
      omit: true,
      afFieldInput: {
        type: 'hidden'
      }
    }
  }

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

No branches or pull requests

2 participants