web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Submit button new screen
Power Apps
Answered

Submit button new screen

(0) ShareShare
ReportReport
Posted on by 98

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?

 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,797 Super User 2026 Season 1 on at

    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)
    )

     

  • Anonymous34 Profile Picture
    98 on at

    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!!

    PowerApps Invalid Code.png
  • VishalJhaveri Profile Picture
    1,169 Moderator on at
    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.

  • Anonymous34 Profile Picture
    98 on at

    Hi @VishalJhaveri, Thank you for your respone!

    It still doesn't seem to be working. See the screenshots I have attached.

    Thanks in advance!


    PowerApssErrorMessage.png
    PowerApss Invalid code 2.png
  • VishalJhaveri Profile Picture
    1,169 Moderator on at

    Try using only Len() part of the code and remove the IsBlank part of the code.

  • Anonymous34 Profile Picture
    98 on at

    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

    PowerAppsCodeLen.png
  • ArjunVMenon Profile Picture
    28 on at

    Hello @Anonymous34 , 

    Go to the "display mode" of the button and write an if condition there.

    For eg, something like this: 

    If(Or(IsBlank(DataCardValue1.Text),IsBlank(DataCardValue2.Text)),DisplayMode.Disabled, DisplayMode.Edit).
    This way the button is disabled if there is no value in the text input. 
    ArjunVMenon_0-1713520265551.png

     

    image.png
  • VishalJhaveri Profile Picture
    1,169 Moderator on at

    THen BLANK() must work.

  • ArjunVMenon Profile Picture
    28 on at

    Yes it does, made a quick form for myself to check. 

    Cheers. 

  • timl Profile Picture
    36,797 Super User 2026 Season 1 on at

    Hi @Anonymous34 

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard