I have built the following login screen. I would like the name (from list) of a given user to be displayed on his screen after logging in. How can I do this.
Set(
teacherRecord,
LookUp(
teachers,
email = txtEmail.Text
)
);
Set(
studentRecord,
LookUp(
students,
email = txtEmail.Text
)
);
If(
IsBlank(teacherRecord) && IsBlank(studentRecord),
Notify("Username not found", NotificationType.Error)
);
If(
!IsBlank(teacherRecord),
If(
teacherRecord.password = txtPassword.Text,
Navigate(home_screen_teachers),
Notify("Incorrect password", NotificationType.Error)
)
);
If(
!IsBlank(studentRecord),
If(
studentRecord.password = txtPassword.Text,
Navigate(home_screen_students),
Notify("Incorrect password", NotificationType.Error)
)
)