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 / Passing a Sharepoint d...
Power Apps
Unanswered

Passing a Sharepoint dropdown value between screens

(0) ShareShare
ReportReport
Posted on by 248

Hello.

 

I have a Sharepoint list with about close to 100 questions (don't ask 🙂 ) and i have decided to break up the form into 5 screens.  On the screen (Bio Detail Form) there is a question that asks for Marital status.  If the user chooses "Married", then this should unhide questions throughout the form that have to be filled out pertaining to the spouse.

 

This conditional statement works for the screen (Bio Detail Form) that has the Marital Status field but not the other screens.   On the OnSelect and OnChange property for the Marital Status Datacard (on the Bio Detail From) i used: 

 

Navigate('Emp Detail Info Form', ScreenTransition.Fade, {varMarried:DataCardValue9.Selected.Value})  and on the Emp Detail Info Form i am using

If("Married" in varMarried, true) in the Visibility property of the datacard but it is not passing the value from the Bio Info Form to the Emp Detail Info Form .

 

I even tried adding a DropDown Control and that didnt work either 😞

 

Can someone tell me what i am doing wrong pleaseeee and thank you!

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    Hi @Misa 

     

    What is the data type of Marital status column? Choices?

    Which control do you use to select Marital status? Combo box?

     

    If my assumption is right, please try to use  "If("Married" = varMarried, true)" in the Visibility property of the datacard, and check if your issue is fixed.

    By the way , the cause of your issue is that "Married" in a part of "UnMarried", so the condition ("Married" in varMarried )will always be true.

     

    Best regards,

    Sik

    If this post helps, then please click on “Accept as Solution” to help the other members find it more quickly.

  • Misa Profile Picture
    248 on at

    @v-siky-msft 

     

    Hi and thank you.

     

    The list of Marital Status is a sharepoint drop down list.  Because of the 4 other screens that would depend on this answer, i tried setting a global variable and for some reason the other screens would not acknowledge that the varMarried variable existed.

     

    "By the way , the cause of your issue is that "Married" in a part of "UnMarried", so the condition ("Married" in varMarried )will always be true." <-- so are you saying that the other screens are not seeing varMarried as a variable but as a string?  

     

     

  • v-siky-msft Profile Picture
    on at

    Hi @Misa ,

     

    The variable generated from navigate function is context variable. That means it only work in the current screen and navigated screen.

    If you want it to be a global variable, please try: 

    Navigate('Emp Detail Info Form', ScreenTransition.Fade); Set(varMarried, DataCardValue9.Selected.Value) 

    The VarMarried variable stores a Text type value, right? so actually the variable is also text type. 

    So whether you choose Married or UnMarried, the string of "Married" is always the part of VarMarried.

    Best regards,

    Sik

    If this post helps, then please click on “Accept as Solution” to help the other members find it more quickly.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard