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

Access submitted all fom values #212

Open
taviroquai opened this issue Apr 24, 2016 · 0 comments
Open

Access submitted all fom values #212

taviroquai opened this issue Apr 24, 2016 · 0 comments

Comments

@taviroquai
Copy link

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;
              }
            }
        }
]});
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

1 participant