Experiences and rules: creation of the app login


Here is the code used in this lesson:

Experience Login {
    String title value("Treasure Hunt!") as Label
    String username label("username") as TextField
    String password label("password") as TextField

    Decision login action("LoginContext.login") label("login")
    Decision signUp action("LoginContext.signUp") label("signUp")

Application {
    OnInit {

RuleContext LoginContext {
    Rule login {


    Rule signUp {


> Next