cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nottheOther
Level: Powered On

Editable dropdown?

Is there any way to set up dropdown list with few items, and option to input own item if items on the dropdown list is not enough for user?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Editable dropdown?

Hi @nottheOther ,

Q1:
Do you want to enter item to the drop down list?

The data displaying in drop down list comes from a table.

If you want to enter item on your own, it means that you need to create new item in the table which is used as the drop down's data source.

I've made a similar test for your reference:

1)I assume that you use a collection as the drop down's Items

2)insert a drop down, a textinput( for you to enter data), a check button

3)the collection's structure:

ClearCollect(test,{value1:"a"},{value1:"b"},{value1:"c"},{value1:"d"})

4)set the drop down's Items:

test

5)set the check button's OnSelect:

If(IsEmpty(Filter(test,value1=TextInput1.Text)),Patch(test,Defaults(test),{value1:TextInput1.Text}))

//if the data that you enter in the textinput has existed in the collection, then do not patch, if not, patch

if you do not check the data whether has existed, you could use patch function directly:

Patch(test,Defaults(test),{value1:TextInput1.Text})

 

 

Q2:

Do you want to display the selected item in a textinput?

Please set the textinput's Default:

Dropdown1.Selected.value1

On your side you should try:

Dropdown1.Selected.fieldname  //please replace the field that you want to display

set the drop down's OnChange:

Reset(Textinput name)

 

//then after you select item in the drop down, the textinput will display the selected item value

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
dynamicsedge
Level 10

Re: Editable dropdown?

@nottheOther 

 

  1. Make the Dropdown based on Collection
  2. Have option for Other in Dropdown
  3. OnSelect if this option then expose an Input Field and a Button for Submission
  4. On Submission OnSelect, update the Collection with the new item just before the last option of "Other"
  5. The dropdown should have the new item in there.

 

Hope this helps.

nottheOther
Level: Powered On

Re: Editable dropdown?

Well, I don't quite get it. But I will try another work around. And wiith another stupiddo question.

 

How to "send" value from Dropdown list to TextInput control?
I want that if user select item from dropdown list than this item will be shown in InputText right above.

Community Support Team
Community Support Team

Re: Editable dropdown?

Hi @nottheOther ,

Q1:
Do you want to enter item to the drop down list?

The data displaying in drop down list comes from a table.

If you want to enter item on your own, it means that you need to create new item in the table which is used as the drop down's data source.

I've made a similar test for your reference:

1)I assume that you use a collection as the drop down's Items

2)insert a drop down, a textinput( for you to enter data), a check button

3)the collection's structure:

ClearCollect(test,{value1:"a"},{value1:"b"},{value1:"c"},{value1:"d"})

4)set the drop down's Items:

test

5)set the check button's OnSelect:

If(IsEmpty(Filter(test,value1=TextInput1.Text)),Patch(test,Defaults(test),{value1:TextInput1.Text}))

//if the data that you enter in the textinput has existed in the collection, then do not patch, if not, patch

if you do not check the data whether has existed, you could use patch function directly:

Patch(test,Defaults(test),{value1:TextInput1.Text})

 

 

Q2:

Do you want to display the selected item in a textinput?

Please set the textinput's Default:

Dropdown1.Selected.value1

On your side you should try:

Dropdown1.Selected.fieldname  //please replace the field that you want to display

set the drop down's OnChange:

Reset(Textinput name)

 

//then after you select item in the drop down, the textinput will display the selected item value

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,720)