Closed joeljoy closed 8 years ago
They are returning null probably because no text has been put in the field yet if you're getting the values right after creating the card form. You can override onCardFormSubmit() and then once the user submits the form you can check that the form is valid and get the values.
@grantbdev is correct, you'll want to make sure that the user has typed something or submitted the form. Under the hood these are just TextView
s and will return null if no value has been entered into them.
There are tests for the CardForm
class to make sure that they do always return the values correctly.
Above functions return null strings.