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 / Create drop down with ...
Power Apps
Unanswered

Create drop down with an another option

(0) ShareShare
ReportReport
Posted on by 277

Hi,

I've created a drop-down list with different options and I have an "Other" option that, when selected, opens a text input (TextBox15). The problem is that I can't find the right formula in the update function of my Datacard. At the moment I've put this into the update function but it doesn't work.

 

If(Text(DataCardValue2.Selected.Value) = "Autres"; 
 {
 Value = TextBox15.Value
 }
; DataCardValue2.Value.Selected)

 

Can you help me please ?

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Eliot_DECRION ,

     

    What is type of column of the data card?

    If it is text type, please try this:

    If(
    DataCardValue2.Selected.Value = "Autres"; 
     TextBox15.Text;
    DataCardValue2.Selected.Value)

     

    Best regards,

    Rimmon

  • ED-03090921-0 Profile Picture
    277 on at

    Hi @v-mengmli-msft 

    I tested this but it not working. I used TextBox but mine is with value no text, I think it's for that. And I tested this formula and it's just the middle part which is incorrect (TextBox15.Value)

    If(Text(DataCardValue2.Selected.Value) = "Autres"; 
    TextBox15.Value;
    DataCardValue2.Value.Selected)

     I have the error "OptionSetValue waited"

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Eliot_DECRION ,

     

    Could you please show me some screenshots?

     

     

  • ED-03090921-0 Profile Picture
    277 on at

    Sure @v-mengmli-msft 

    3.png
    2.png
    1.png
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Eliot_DECRION ,

     

    Here is what I got from your Image.

    vmengmlimsft_0-1703146512808.png

     

    Best regards,

    Rimmon

  • ED-03090921-0 Profile Picture
    277 on at

    For the error I'm agree with you @v-mengmli-msft , I think it didn't wait a value when I put "TextBox15.Value", it wants a OptionSetValue .

    My column is a choice column with 6 differents choices that I defined in my table. (you can see all with photos)

    1.png
    2.png
  • ED-03090921-0 Profile Picture
    277 on at

    For the error I'm agree with you, I think it didn't wait a value when I put "TextBox15.Value", it wants a OptionSetValue .

    My column is a choice column with 6 differents choices that I defined in my table. (you can see all with photos)

    1.png
    2.png
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Eliot_DECRION ,

     

    This is because the Choice column in the dataverse is a special type of column and the value returned by the text input does not match the column's expectations. Additionally, even if we change the value of the text input to the appropriate data type, we need to update the value into the choice table as the new option, but new options can only be added manually. Another alternative is to change the options column to a lookup column and then update the new options as new records in the lookup table.

     

    Best regards,

    Rimmon

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard