How to merge text in textfield

Project Settings

Hello, I am a beginner. I have a login system that uses CPF and does not use email. My database (firebase) only accepts email. So I thought, since my project only has login and no account creation, I will create the users myself, and I considered creating the user with the user's normal CPF but adding @gmail.com at the end. Is it possible that when the user types their CPF in the text field, it automatically adds @gmail.com at the end without the user needing to type it?

What have you tried so far?

// I have already tried that, but it didn't work.

// Automatic FlutterFlow imports import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import '/custom_code/actions/index.dart'; // Imports other custom actions import '/flutter_flow/custom_functions.dart'; // Imports custom functions import 'package:flutter/material.dart'; // Begin custom action code // DO NOT REMOVE OR MODIFY THE CODE ABOVE! // Define a function to perform the action void myCustomLoginAction(String cpfInput, String senhaInput) { // Obter o valor do campo de CPF var email = cpfInput + '@gmail.com'; // Perform login using the generated email (email, senhaInput); }

Did you check FlutterFlow's Documentation for this topic?
No
1
1 reply