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 / Address Input Control
Power Apps
Answered

Address Input Control

(0) ShareShare
ReportReport
Posted on by 3,295

Hello,

 

First time trying to add this control to my canvas app. I have two silly questions:

 

1. I have a button and the display mode is based on 3 controls with this formula:

 

A label that perform a sum:

Sum(If(!IsBlank(DataCardValue1),1),If(!IsBlank(DataCardValue6),1),If(!IsBlank(AddressInput.UserInput),1))

Button Display Mode

If(Value(LblCountFields.Text) = 3, DisplayMode.Edit,DisplayMode.Disabled)

 

For some reason the address input keeps the previous address and I always get "1" in my text label

 

Is there a way to count the characters in this address input to check if the field is empty or not?

 

And second question? Can this address input control be reset? using an external button? 

 

Thanks in advance  

Categories:
I have the same question (0)
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    I don't have access to the premium control of an Address Input field, but you can maybe clean up some of those formulas for the Button's DisplayMode by trying:

     

    If(
    And(!IsBlank(DataCardValue1.Text), !IsBlank(DataCardValue6.Text), !IsBlank(AddressInput.UserInput)),

    DisplayMode.Edit, DisplayMode.Disabled
    )

     

    Excuse the formatting.

     

    It doesn't seem like it has a Reset property. You can maybe try setting the Default property of the address input to a variable, then having a button set the variable to blank or just "". Unsure if that'll work though!

  • Sajarac Profile Picture
    3,295 on at

    Thank you very much. I did the change that you proposed for the formula. Kudos for that.

    The reset didn't work. But I will continue searching.

     

    Thanks in advance

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @sajarac ,

     

    I agree with what @zmorek said, you could try to use a variable to implement the reset control's input.

    Set(var_address,AddressInput1.UserInput)
    "length: "&Len(var_address)
    Set(var_address,Blank())
    Sum(If(!IsBlank(DataCardValue9.Text),1),If(!IsBlank(DataCardValue10.Text),1),If(!IsBlank(var_address),1))
    If(Value(LblCountFields.Text) = 3, DisplayMode.Edit,DisplayMode.Disabled)

    vyujincuimsft_0-1648020338416.png

    Result:

    addressinput.gif

     

    Best Regards,

    Charlie Choi

  • Sajarac Profile Picture
    3,295 on at

    Thank you very much both. 

    And @v-yujincui-msft , thank you very much for the amazing explanation.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard