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 / How to set defaultsele...
Power Apps
Answered

How to set defaultselecteditems in combobox

(0) ShareShare
ReportReport
Posted on by 23

Hi peeps ! 

I'm seeking for your help regarding the above matter. 

I have 2 two forms in different screen with different datasource but have lookup column and i am using SharePoint List for datasource

 

Student List :- 

Column NameData type
Student NameText
PassportNumber
BirthdateDate

 

 

Release of Child

Column NameDatatype
StudentLookup (Student List, Student Name)
Individual NameText
Vehicle Registered NoText

 

 

Form 1 in Screen 1 :- 

Allow user to fill in information of the kid and submit as registered student 

 

Form 2 in Screen 2 :-

Allow user to register person that can pickup the student, for the lookup column, it gives me combobox. 

 

My Goals :- 

1. To have auto defaultselecteditems for student in form 2 as of submitted in previous form. 

 

Problems:-

1. On Student Field in Form 2 at Screen 2 , it appear the name as the previous screen. But it did not capture the value when i submit the Form 2 , it turns our blank.

 

Thanksss

 

Anne98_0-1688535053928.pngAnne98_1-1688535132665.png

 

Anne98_2-1688535167401.png

 

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

    Hi @Anne98 ,

     

    Based on your description, we reproduce your problem.

     

    You need to change formula like this.

    SubmitForm(Form1);

    Refresh('0705_2');

    Navigate(Screen2,ScreenTransition.None,{StudentRef:Form1.LastSubmit.ID});

    ResetForm(Form1)

    vhanytianmsft_0-1688542138911.png

     

     

    Form2:

    DefaultSelectedItems:

    LookUp(Choices([@'0705_2'].Student), StudentRef = Id , ThisRecord)

    vhanytianmsft_1-1688542138913.png

     

    Items:

    Choices([@'0705_2'].Student)

    vhanytianmsft_2-1688542138914.png

     

     

    The Button to Submit Form:

    SubmitForm(Form2)

    ;ResetForm(Form2)

    vhanytianmsft_3-1688542138916.png

     

     

    vhanytianmsft_4-1688542138917.png

     

    vhanytianmsft_5-1688542138918.png

     

    vhanytianmsft_6-1688542138919.png

     

     

    Hope this will help you.

     

    Best Regards,

    Tina

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard