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 / Enable form validation...
Power Apps
Suggested Answer

Enable form validation on click of next button

(1) ShareShare
ReportReport
Posted on by 112
I have a powerapps form which is split across 3 screens. On Screen1, if i click on Next button, my form should throw validation error if the fields are blank.
 
Usually i use SubmitForm() function to automatically throw validation error. But here i can use Submit function in Screen3 only.
 
In Screen1 on click of next button, may i know how to show validation error? I tried Form1.Valid on Next button Onclick but nothing works. May i know how to achieve this?
I have the same question (0)
  • Suggested answer
    RobElliott Profile Picture
    10,503 Super User 2026 Season 1 on at
    Set the DisplayMode of the Next button to disabled if any of the fields you need to be filled are blank. And make sure you have an info icon/button somewhere that explains this.
     
    Rob
    Los Gallardos
    Principal Consultant, Power Platform, WSP Global (and classic 1967 Morris Traveller driver)
  • Suggested answer
    Valantis Profile Picture
    5,267 on at
     
    RobElliott's approach is the cleanest UX pattern. To add the specific implementation:
    Set the Next button's DisplayMode property to:
    If(
        IsBlank(DataCardValue1.Text) || IsBlank(DataCardValue2.Text),
        DisplayMode.Disabled,
        DisplayMode.Edit
    )
    Replace DataCardValue1, DataCardValue2 etc with your actual required field names.
    If you want to keep the button enabled but show validation errors on click instead (like SubmitForm does), the confirmed approach is:
    1. Set a variable on the Next button OnSelect:
    Set(varScreen1Submitted, true);;
    If(Form1.Valid, Navigate(Screen2), false)
    2. Set each required DataCard's Error property to show when the variable is true and the field is blank:
    If(And(varScreen1Submitted, IsBlank(DataCardValue1.Text)), "This field is required", "")
    The form's built-in required validation only triggers on SubmitForm, so you need to replicate the error display manually for intermediate screens. The disabled button approach from RobElliott is simpler and the better UX since users can see upfront what's missing.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard