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 / Validation - minimum a...
Power Apps
Answered

Validation - minimum amount of characters

(0) ShareShare
ReportReport
Posted on by 909

Hello,

 

In my app I have a sharepoint list field (multi text) that users need to fill and then send.

 

I would like to create a validation button, that would prevent going forward when field has less then 40 characters.

 

I tried to do it like that:

 

 

If(DataCardValue2.Text > 39; true; false);Notify("Minimum 40 characters";NotificationType.Error);Navigate(Screen3;Fade)

or 

If(DataCardValue2.Text(Count) > 39; true; false);Notify("Minimum 40 characters";NotificationType.Error);Navigate(Screen3;Fade)

 

 

but it spams with unexpected characters, invalid list of arguments.

I know that this DataCardValue2.Text(Count) is stupid, but that was my best effort 😉

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi @Elitezone 

     

    You were close!

     

    Here's how I would do that:

     

    If(
     Len(DataCardValue2.Text) < 40;
     Notify("Minimum 40 characters"; NotificationType.Error);
     Navigate(Screen3;Fade)
    )

     

    We are checking the Length of the Text, and if its less than 40 characters we notify that it must be minimum 40, otherwise we navigate! 🙂

     

    Cheers,

    Sancho

  • WarrenBelz Profile Picture
    156,417 Most Valuable Professional on at

    Hi @Elitezone ,

    Try

    If(
     Len(DataCardValue2.Text)<40;
     Notify("Minimum 40 characters";NotificationType.Error);
     Navigate(Screen3;Fade)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Elitezone Profile Picture
    909 on at

    It works great guys. You are both amazing.

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

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard