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 / Visibility of an error...
Power Apps
Answered

Visibility of an error text field

(0) ShareShare
ReportReport
Posted on by 6

Hello everybody!

I have 4 fields that is required. I want to change the visibility of them when I submit the form. If the form is valid then nothing will show up and form will be submitted. If the fields that must be filled are empty then I want to make the error field visible which will say This are must be filled. ErrorMessage12_1, ErrorMessage14_1 are examples that I want to show depending on form validation. The function I wrote onselect property of the button is down here.

Could you help me with it?

 

Thank you for your help

 

 

 

 

Gates92_1-1677755401188.png

 

Gates92_0-1677755298155.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Gates92 ,

     

    For Edit forms, there is already a built-in function that makes it display an error message when the required field is empty:

    vjefferni_0-1677830047660.png

     

    If required field is empty, SubmitForm will not success, Form.Valid is not necessary. So OnSelect of your Button:

    SubmitForm(Form1);Navigate(BrowseScreen1)

     

    Best regards,

  • Gates92 Profile Picture
    6 on at

    I don't know why but this solution does not work for my situation. I basically have 4 fields that must be filled and one of them is a dropdown list. I want to change the visibility of the error messages when press the submit button and I want to customize the error message. ErrorMessage11_1, ErrorMessage12_1 etc.

     

    Gates92_0-1677831665316.png

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Gates92 ,

     

    I don't get what you mean by this does not work. Could you please share the result what you have got if using the solution? 

     

    Best regards,

  • Gates92 Profile Picture
    6 on at

    When I only make the fields required it keeps submitting the form eventhough some fields are not filled and the error message does not show up.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Gates92 ,

     

    There must be something wrong in the Edit form. Please try and add it from insert pane and customize it from scratch instead of copying another one:

    vjefferni_0-1677837689114.png

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard