cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fa1con74
Helper III
Helper III

Problem with my login button

 

 

 

If(
    TextInputPassword.Text = "123";
    Reset(TextInputPassword);
    UpdateContext({PopUp: false});
    Navigate(
        ManagerScreen;
        ScreenTransition.Cover
    );

    UpdateContext(
        {
            MessageText: "I thought you knew the password ? Try again.";
            BadPasswordCount: Sum(
                Value(BadPasswordCount);
                1
            )
        }
    );
    Reset(TextInputPassword)
);;

If(
    BadPasswordCount = 3;
    UpdateContext({PopUp: false});
    Navigate(
        JailScreen;
        ScreenTransition.Fade
    )
)

 

 

 

 

 

Hello, I want to give a connection screen to my app and so I created a button with these lines

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

@Fa1con74 ,

Do you receive an error or is not working ? What are the symptoms ?

Having a French environment, i think that you need to adjust your formula to:

 

If(
    TextInputPassword.Text = "123";
    Reset(TextInputPassword);;
    UpdateContext({PopUp: false});;
    Navigate(
        ManagerScreen;
        ScreenTransition.Cover
    );
    UpdateContext(
        {
            MessageText: "I thought you knew the password ? Try again.";
            BadPasswordCount: Sum(
                Value(BadPasswordCount);
                1
            )
        }
    );;
    Reset(TextInputPassword)
);;

If(
    BadPasswordCount = 3;
    UpdateContext({PopUp: false});;
    Navigate(
        JailScreen;
        ScreenTransition.Fade
    )
)

Hope it helps !

 

 

View solution in original post

The european way of coding in PowerApps use ";;" for ";" and ";" for ",". So you need to adjust your entire formula to this. Please try my formula from previous post. 

View solution in original post

6 REPLIES 6
iDLIR
Frequent Visitor

Hello @Fa1con74,

 

can you try removing the double ;;

is there any reason using them?

 

thanks,

iDLIR

Indeed, I removed some doubles;; but I have to leave some because I am in a French environment and the problem persists

@Fa1con74 ,

Do you receive an error or is not working ? What are the symptoms ?

Having a French environment, i think that you need to adjust your formula to:

 

If(
    TextInputPassword.Text = "123";
    Reset(TextInputPassword);;
    UpdateContext({PopUp: false});;
    Navigate(
        ManagerScreen;
        ScreenTransition.Cover
    );
    UpdateContext(
        {
            MessageText: "I thought you knew the password ? Try again.";
            BadPasswordCount: Sum(
                Value(BadPasswordCount);
                1
            )
        }
    );;
    Reset(TextInputPassword)
);;

If(
    BadPasswordCount = 3;
    UpdateContext({PopUp: false});;
    Navigate(
        JailScreen;
        ScreenTransition.Fade
    )
)

Hope it helps !

 

 

I don't have a mistake, just it doesn't work

 

 

 

Fa1con74_0-1642328616029.png

Fa1con74_1-1642328684125.png

 

 

The european way of coding in PowerApps use ";;" for ";" and ";" for ",". So you need to adjust your entire formula to this. Please try my formula from previous post. 

thank you very much

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,625)