Announcements
I imported a sharepoint list with some columns to powerapps in a form.
The user has to fill in these fields. I also made these fields mandatory. Then with a button I want to navigate to another screen, but this is only allowed when the fields are filled in. Now if the fields are not filled in and if you click on the button to submit it automatically goes to the new screen while the fields are still empty.
How can I fix this?
Hi @Anonymous34
The button that navigates to the other screen will call the Navigate function. If you wrap this around an 'if' condition to check the content of your text input fields, that will provide the behaviour that you're looking for.
If(IsBlank(TextBox1.Text) || IsBlank(TextBox2.Text) || IsBlank(TextBox3.Text), Notify("Please enter all fields"), Navigate(YourOtherScreen) )
Hi @timl, thank you for your respone!Unfortunately, it still doesn't work. I tried with the code you sent and modified on my own app. See screenshot I sent along. Thanks in advance!!
If( !IsBlank(Datacardvalue1.Text) && Len(Datacardvalue1.Text)>0 && !IsBlank(Datacardvalue2.Text) && Len(Datacardvalue2.Text)>0 && !IsBlank(Datacardvalue3.Text) && Len(Datacardvalue3.Text)>0 , Navigate(Loading_Screen), Notify("Please enter all fields") )
This must definitely work.
Hi @VishalJhaveri, Thank you for your respone!It still doesn't seem to be working. See the screenshots I have attached.Thanks in advance!
Try using only Len() part of the code and remove the IsBlank part of the code.
Hi @VishalJhaveri, thanks for your response!
See screenshot of how I tried it now. It doesn't work yet. I get the error message "There is an error in this formula".
Thanks in advance
Hello @Anonymous34 ,
Go to the "display mode" of the button and write an if condition there.
For eg, something like this:
THen BLANK() must work.
Yes it does, made a quick form for myself to check.
Cheers.
Can you confirm the control types that you're using in your form (are they text input controls, dropdowns, etc)? If you're using the modern text control, you would need to reference the .Value property instead of .Text.
If(IsBlank(TextBox1.Value) || IsBlank(TextBox2.Value) || IsBlank(TextBox3.Value), Notify("Please enter all fields"), Navigate(YourOtherScreen) )
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 633
11manish 588
Valantis 457