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

Added hidden CustomTextField support #587

Merged
merged 2 commits into from
Jan 3, 2020

Conversation

ejensen
Copy link
Contributor

@ejensen ejensen commented Dec 4, 2019

Followup from PR #570. These changes are intended to provide a way to pass through user metadata during account creation. In contrast to the key/values map approach in PR #570, this PR creates hidden UI fields that have their value assigned programmatically. This is based on the conclusion in this comment. Creating UIViews that is never intended to be shown is inefficient. But is required to use the existing array of CustomSignupFields & not breaking the interface & not needing to refactor all the code that depends on InputField views being created for each of the values in the customSignupFields array.

Changes

  • Adds option to set a CustomTextField to hidden
  • Adds option to set a CustomTextField value (required to passthrough values in hidden field)
  • Adds option to set a CustomTextField autocapitalization type
  • Corrects the setting of the CustomTextField autocorrection type

References

Testing

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@ejensen ejensen requested a review from a team December 4, 2019 00:24
@cocojoe
Copy link
Member

cocojoe commented Dec 4, 2019

Thanks for the continued contribution @ejensen

@cocojoe cocojoe added this to the vNext milestone Dec 4, 2019
@cocojoe cocojoe changed the title Hidden CustomTextFields Added hidden CustomTextFields support Dec 4, 2019
@cocojoe cocojoe changed the title Added hidden CustomTextFields support Added hidden CustomTextField support Dec 4, 2019
@cocojoe cocojoe requested review from Widcket and removed request for a team December 4, 2019 09:52
Widcket
Widcket previously approved these changes Dec 20, 2019
@Widcket
Copy link
Contributor

Widcket commented Dec 20, 2019

@ejensen can you please include this new feature in the README?

@ejensen ejensen force-pushed the sign-up-hidden-custom-text-fields branch from 914b7c2 to 51afcf8 Compare December 24, 2019 20:20
@ejensen
Copy link
Contributor Author

ejensen commented Dec 24, 2019

@ejensen can you please include this new feature in the README?

The README has been updated to include references to the new parameter.

@ejensen ejensen force-pushed the sign-up-hidden-custom-text-fields branch from 51afcf8 to f0febcd Compare December 26, 2019 17:53
@Widcket Widcket merged commit 8e0a1b6 into auth0:master Jan 3, 2020
@Widcket
Copy link
Contributor

Widcket commented Jan 3, 2020

@ejensen thanks for your PR!

@ejensen ejensen deleted the sign-up-hidden-custom-text-fields branch January 3, 2020 18:50
@Widcket Widcket mentioned this pull request Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants