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 / Form Customing: how us...
Power Apps
Unanswered

Form Customing: how use two controls (but only one is set) in DataCard?

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I have one control before the DataCard with 2, which its set one or another. If the control is true get the info from the textfield, if not, get the info from the dropdown. How can I use that? And how the forms accept this? Because I tried a condition string but it reject, because the field expect a text and not opt content.

Ps.: For clarity, just only one control of the two will be displayed, the other would be hidden as the toggle sets.

Brendon007_0-1701217772710.png

Brendon007_1-1701217823736.png

 

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Brendon007,

    Is this LocalTest a text column in your Dataverse table?

    Do you set the Items property of the dropdown control with a Choices()?

     

    I suggest you use a AddColumns() to create a text column to save the choice as below:

    AddColumns(Choices(OptionName),"LocalNew",Text(Value)).LocalNew

    If so, I think you should set the Update property of this data card as below:

    If(Toggle1.Value,dd.Selected.LocalNew,TextInput1.Text)

     

  • Brendon007 Profile Picture
    2 on at

    Qi,

    LocalTest is a Text Field (because I think the Dropdown is just a formatting). And for Dropdown, I set values by a list " ['Auditório Diretoria Geral 1', 'Auditório Diretoria Geral 2'] ". I dont think I need create another column (LocalNew). I want use only one field in my SharePoint List, but with info comming from Power Apps. What I wish is if the meeting is presencial, show option, if isn't show text input for Teams Link.

     

    Ps.: LocalTest is a Text Field at Sharepoint List

     

    Thanks for reply 🙂

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @Brendon007,

    You set the Items property with list.LocalTest or ['Auditório Diretoria Geral 1', 'Auditório Diretoria Geral 2']?

    Hope you could directly tell me this, which is the key to this issue.

     

    I mean, if you populate the dropdown with a text column from SP list, we could capture it using dd.Selected.LocalTest, if you populate it with ['Auditório Diretoria Geral 1', 'Auditório Diretoria Geral 2'], then you need to refer to dd.Selected.Value, which is totally different.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard