web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Validation on clicking...
Power Apps
Unanswered

Validation on clicking button || Lenght of text input

(0) ShareShare
ReportReport
Posted on by 390

Good afternoon everyone,

I have an issue about my "Crear" button: I want it to be able to click if the "ID FISCAL" text input is with only 11 characters, no more or less.

Thank you,

Jose

Categories:
I have the same question (0)
  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Simply add this to the DisplayMode property of your button:

    If(Len("ID Fiscal".Text) =11, DisplayMode.Edit)

    You can combine this with the rest of the logic for the DisplayMode of that button if you like.

    Let me know if this helps.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @JoseC12 

    Add this to your formula

     

    || !(Len(Input_IDFiscal.Text)=11) ...

     

    EDIT: @PowerAddict  typing at the same time 🙂

  • JoseC12 Profile Picture
    390 on at

    Thank you to solve me that problem.

    Can I also validate to not click the submit button if the "ID FISCAL" text input does not start with "20" for example?

  • Community Power Platform Member Profile Picture
    on at

    @JoseC12 

    You can utilise the StartsWith() function to help here, like this

     

    !(StartsWith(Input_IDFiscal.Text, "20")), Disabled, Edit

     

    see here https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-startswith

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard