Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Set value based on another field

(0) ShareShare
ReportReport
Posted on by 30

I have a powerapps custom form and the "zip code" is an text free entry based on zip code the county name should populate on "Region" Field. Below formula in powerapps is not working. I need OR condition.

 

If(DataCardValue6.Mode='11727'||'11324', set(DataCardValue8)='Suffolk County',set(DataCardValue8)='None')

 

Please advise. 

  • alpatel Profile Picture
    30 on at
    Re: Set value based on another field

    We don't want to do lookup as user have to maintained the list. 

     

    I used option second code and that worked beautifully. 

    Thank you so much for your quick response. 

     

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Set value based on another field

    Hi @alpatel ,

     

    Could you please share more details about your scenario? Do you have another list where contains county names along with unique zip codes? If there is a list it will be quite simple.

     

    I assume the list is named Counties, with county names in Title column and zip codes in ZipCode column. Both columns are of type text. So, Text property of DataCardValue8: 

     

    Coalesce(LookUp(Counties, ZipCode = DataCardValue6.Text, Title),"None")

     

     

    If you do not have the Counties list, according to the formula you give, please try below in Text of DataCardValue8:

     

    If(DataCardValue6.Text="11727"||DataCardValue6.Text="11324", "Suffolk County","None")

     

     

    Best regards,

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 109 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 72

Overall leaderboard