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 Pages / Hide button based on 4...
Power Pages
Answered

Hide button based on 4 input text fields

(0) ShareShare
ReportReport
Posted on by 45

Hide button based on 4 input text fields.                                     

This is the formula that is inserted button / property / visible:

If(And(!IsBlank(Firmanavn.Text),!IsBlank(Adresse.Text),!IsBlank(Postalkode.Text), !IsBlank(Cvrnr.Text)),true,false)

But I'm getting syntax error.
Thanks for your help

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ bitvrbit:

    Do you want the button control to be visible when all four of these TextInput controls are not empty?

    I did the same test but didn't encounter the problem you said:

    Set the button’s visible property to:

     

    If(And(!IsBlank(Firmanavn.Text);!IsBlank(Adresse.Text);!IsBlank(Postalkode.Text);!IsBlank(Cvrnr.Text));true;false) /* Same as your code*/

     

     

    1.jpg

     

    To find the problem, I suggest you check the following two points:

    1\The name of your Text Input control: Did you quote them correctly in the formula?

    2\ In some region, ; represent ,;;, represent ;,maybe you can try:

     

    If(And(!IsBlank(Firmanavn.Text);!IsBlank(Adresse.Text);!IsBlank(Postalkode.Text);!IsBlank(Cvrnr.Text));true;false)

     

    In addition, I think

     

     And(!IsBlank(Firmanavn.Text),!IsBlank(Adresse.Text),!IsBlank(Postalkode.Text), !IsBlank(Cvrnr.Text))

     

     is enough. For brevity, there is no need to use "if"

     

    Best Regards,

    Bof

  • bitvrbit Profile Picture
    45 on at

     Thank you very much v-bofeng-msft  thank you .you don't know how much time I have lost for this function. I gladly accept info for syntax for beginners. ciao ciao 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

Last 30 days Overall leaderboard