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 / Configuring button to ...
Power Apps
Unanswered

Configuring button to not continue unless a value is found within a database table

(0) ShareShare
ReportReport
Posted on by 45

Morning Powerapp crew!

 

I've been developing an app with a chap who looks after the azure database side of things.

 

We have 2 screens.

Screen one tells them to enter a post code - they type this in, and then click continue, and it takes them through to screen 2, where the first drop down is then populated with all properties from the table that share the postcode they have put in.

The API has been configured to return a 'Postcode not found' in the first drop down IF they choose one that is not in the list.

 

Is there anyway I can configure the button not to proceed though, if the postcode is not valid?

 

The current script in there is as follows:

 

Button from first screen:

Navigate(Screen2, ScreenTransition.Fade, {postCode:I_Postcode.Text})
&
Reset(I_Postcode)

 

Thanks

Dan

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Dan_B 

     

    You can set the display mode property of the button control as:
    If(I_Postcode.Text in TableName.ColumnName, DisplayMode.Edit, DisplayMode.Disabled)
     
    TableName.ColumnName, Here you need to pass the table and column name where all the post codes aer saved.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard