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 / Form - Set default val...
Power Apps
Unanswered

Form - Set default value for Control based on User selection of another Control on the same Form

(0) ShareShare
ReportReport
Posted on by 356

I have a Form with several fields of which some get their values from Drop Downs that get their values from another Table.

 

For example if I'm populating an address Table, and in my Form I have a City Drop down which gets it's list of cities from a City Table, and in the same Form I have a Text field called CityID. I need to set the default value of the CityID field based on the City the User has selected from the City DropDown.

 

How can I do that when using a Form Control in edit mode?

Categories:
I have the same question (0)
  • Oleks Profile Picture
    83 on at

    Hi

     

    Set Default property of the Card control of the CityID field to

    CityDropDown.Selected.ID

    Hope this helps you.

     

    -Oleks

  • UB400 Profile Picture
    356 on at

    @OleksThanks for your answer. I had tried that and tried it again, but the momment I add the "." to the "CityDropDown" I get an error "invalid use of '.'"

     

    What am I doing wrong? I selected the Card, looked up the "Default Value", and tried to enter it as you said but no luck.

     

    I've done this numerous times with Patch (without using a Form), but am now trying to use Forms to reduce the amount of effort it takes to build Apps.

  • Meneghino Profile Picture
    6,949 on at

    Hi @UB400, just a passing comment.

    As soon as there is any customisation, I have always found it much easier in the end to use the single controls and Patch rather than using forms.  With the abitlity to copy-paste controls and groups of controls within the app, I find the effort is ok.

    I hope that @Oleks can still help you, however.

  • UB400 Profile Picture
    356 on at

    @Meneghino I totally understand where you're coming from. I still struggle a lot with the formulas, it's getting better but not there yet. Which is why I was looking for an easier and quicker way to get Apps out of the door.

     

    I do have to agree with you, that (atleast with my understanding) Forms can be limited, and Patch offers a lot of versatility.

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 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard