meteor-accounts-ui-bootstrap-3
meteor-accounts-ui-bootstrap-3 copied to clipboard
Access submitted all fom values
Hi,
How do I access all form fields on the validate function in the example below? Thanks.
Accounts.ui.config({
requestPermissions: {},
passwordSignupFields: "USERNAME_ONLY",
extraSignupFields: [
{
fieldName: 'first_name',
fieldLabel: 'First Name',
inputType: 'text',
visible: true,
validate: function(value, errorFunction) {
if (!value) {
errorFunction("First name is required");
return false;
} else {
return true;
}
}
}
]});