Skip to content

PFSignUpViewController Additional Field #1406

@jschwartzmtn

Description

@jschwartzmtn

I'm trying to capture users' full names at sign up. I've subclassed PFSignUpViewController and in viewDidLoad() I have the following:

self.fields = [.usernameAndPassword, .dismissButton, .signUpButton, .additional]

However when the SignUpViewController loads, only the username & password fields show up. I am able to make other customizations (button colors, background and logo images, etc.). At runtime, signUpView.additionalField is nil.

I also tried forcing the additional field to be enabled using

signUpView.additionalField.isEnabled = true

but this did not change anything. Interestingly, if I do this:

self.fields = [.dismissButton, .signUpButton, .additional]

The username and password fields still show up and the rawValue of signupView.fields does not change (the rawValue is 27 regardless of what I include in the fields array).

There isn't much documentation around this, so any help that can be provided would be awesome (and should probably be added to the documentation for future use).

Metadata

Metadata

Assignees

Labels

type:bugImpaired feature or lacking behavior that is likely assumed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions