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 / Minium length of 8 num...
Power Apps
Answered

Minium length of 8 number in a datacard field not in textinput field

(0) ShareShare
ReportReport
Posted on by 254

Hello,

I just discoverd that a datacard field is not the same as text input field in many regards.

How can I set the properties of a datacard field value that it has to me a number and only valid when its 8 digits?

If there are not 8 digits there can be a warning or visual remark to correct this.

 

I tried with len function but it never worked out. I hope someone can tell me what and where to put a function in it.

 

Thank you very much in advance. 

Best. 

 

Categories:
  • RiccoHipp1903 Profile Picture
    284 on at

     I actually tried it out, and did not have any issues. 

     

    make sure that the Form is in the Editmode.

     

    RiccoHipp1903_0-1651824686873.png

    RiccoHipp1903_1-1651824704540.pngRiccoHipp1903_2-1651824730669.png

     

  • Sher0024 Profile Picture
    30 on at

    Are you referring to the Datacard created by a form?

    If so, try using the DataCardValue instead, I think it has the same function to restrict the values as numbers and the length of the characters as well:

    Sher0024_0-1651825925349.png

     




  • Applicable88 Profile Picture
    254 on at

    @Sher0024 it has max restriction yes, but how to implement that it needs to be 8 numbers only? There is no defaul minimum characters selection 

  • Applicable88 Profile Picture
    254 on at

    @RiccoHipp1903 thats a good indicator if the value does not match 8 numbers. But how to make it with a warning or not even let me submit the form if 8 numbers have not been put in?

  • Verified answer
    RiccoHipp1903 Profile Picture
    284 on at

    Instead of setting up the Border you can 

     

    1. Make a little Warning sign next to it like I did that 

    RiccoHipp1903_0-1651839524000.png

    set the Visible property to 

    If(Len(DataCardValue_1.Text)=8,false,true)

    or

    2. set the submit button on the displayMode to disabled as long as the requirements are not set 

    If(Len(DataCardValue_1.Text) = 8, Edit, Disabled)
  • Applicable88 Profile Picture
    254 on at

    @RiccoHipp1903 great idea! I tried it out, it works very good. 

    Thank you very much and have a nice weekend.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard