MeteorJS: extraSignupFields, default value for checkbox


#1

i want to know if there’s a way to set a default value for checkbox in extraSignupFields ?

I want a invisible checkbox with false default to know if an user is active or not. (and save on mongo)

ex:

Accounts.ui.config({
extraSignupFields: [
{
fieldName: “active”,
fieldLabel: "active?"
inputType: ‘checkbox’,
visible: false

},
{
fieldName: “sobrenome”,
fieldLabel: “Sobrenome”
}
],
requestPermissions: {
facebook: [“email”,“user_about_me”]
}
});