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 / Canvas form not showin...
Power Apps
Answered

Canvas form not showing error text / missing field details - Dataverse table

(0) ShareShare
ReportReport
Posted on by 710

I have an edit form linked to a dataverse table in a Canvas App.

I have setup the submit button with the following 'On Select'
If(mainform.Valid, SubmitForm(mainform))

 

It works, by not doing anything if the form is not valid which is great, however I cannot seem to figure out why the error text is not displaying underneath fields...I have all set to mandatory in the DV table..

form.png

TLDR, Errors are not displaying to let the user know what they have missed.
Is there another step I need to follow for this to display?

Thank you

Categories:
I have the same question (0)
  • madlad Profile Picture
    2,637 Moderator on at

    For the errors to display, the form has to attempt to submit - since you've bypassed this, the form never actually throws any errors.

    You could either remove the if function, and always attempt to submit the form(throwing the appropriate errors) or you could use some combination of checking these within the if statement, and perhaps variables to manually display these messages.

     

    For this, you could check each data card's validity, and for each of them, set variables, something along the lines of:

    Set(DataCard1Valid, *ThisDataCard*.Valid)

     with a unique variable being set for each datacard, and the error message being that data card's variable.

     

    If you've any questions about specifics implementing these, I'm happy to provide more details  🙂

     

    You can also see more details on error handling with these docs, which may be handy:

    Powerapps OnError property 

    Powerapps Error functions 

     

    Hope this helps!

  • RandomDept Profile Picture
    710 on at

    Champ thank you

    I just had a thought, can it be done by setting the Text of the error message field to "My Message"

    Then set the Displaymode of the error field to If (IsBlank(fieldname),DisplayMode=DisplayMode.Edit, DisplayMode.Disabled). 
    Then I gotta figure out how to get it to update when a user clicks off the field...

  • madlad Profile Picture
    2,637 Moderator on at

    It  can be done like that - and using IsBlank should stay updated live!

     

    It is worth noting that using this, the message will display always until it's got text.

    Also, in my opinion, it might be nicer to change the visibility as opposed to the display mode - all you'd need is something along the lines of this in the message's visible property:

    IsBlank(*FieldName*.*Value*)

     

    If you wanted it to display only when the submit button is pressed(more akin to a true 'Error Message'), you could set a true false variable when the button is pressed with

    Set(ButtonPressed, true)

    and then combine both of these, something like:

    IsBlank(*FieldName*.*Value*) && ButtonPressed

     

    Just as a side note, if these have solved your issue, if you could mark as solution so others can find these answers as well. 🙂

  • RandomDept Profile Picture
    710 on at

    Thank you, Almost there 🙂
    Trying to use the Visible property of the error text field.

    I wasn't sure what the 'Value' in 

    IsBlank(*FieldName*.*Value*)

    should be.

    Be nice if I could toggle directly like Displaymode.Edit,Display,mode.Disabled
    Is there something like this?

    If (IsBlank(Inputfield),Visible.true,Visible.false)

     

    Thanks again

  • madlad Profile Picture
    2,637 Moderator on at

    What I meant by this, is the inputted control's value - for example, if you had a text input(named TextInput) to input data with on a card, you could use 

     

     

    IsBlank(TextInput.Text)

     

     

    likewise a card with a dropdown could use DropdownName.Selected - every input control has a property which returns the value stored in it currently.

    Putting this in the "Visible" property of the error message will toggle the error's visibility almost instantly - no external formula will impact it really, all you need is a function which returns true or false here.

     

    Let me know if you need any more details about this! 🙂

  • RandomDept Profile Picture
    710 on at

    Thanks again,
    So close, I can feel it.

    close.png

    I cut off the main input field name 'position'
    The code is in the positionError Visible property.
    At the moment, nothing is displayed regardless of the position input field being empty of containing text.

  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    I see, you are quite close, you just have to move some stuff around.

     

    Just to confirm, you want positionError to say "full" if there is text, and "Empty" if there isn't?

    Also, I'm assuming position is a text input here.

     

    In this case, try this code, except in the "Text" Property of the label:

     

    If(!IsBlank(position.Text), "Full", "Empty")

     

    This, inside the text property of the error label, will change the text to be "Empty" when position is empty, and "Full" when it's not

     

    Just for future reference, one key thing to remember when trying to update labels and other controls automatically - it generally can't be done outside of the controls defining property, without the use of variables or some other fiddling around. 

  • RandomDept Profile Picture
    710 on at

    Champion, that's got it.

     

    Thank you so much!

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 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard