justinmind-logo
 
Upvote 2

How to add value to drop down list with already fixed set of values.

Answered Victor Conesa 11 years ago

Hi,


As per the title, I want to be able to add value to a drop down list


with already populated set of values dynamically.


ie. A value entered in a text box will add the value to the drop down list after clicking a button. I have tried it with the entered value, storing it in a variable and add that variable to the list but had no luck.


Thanks,

Best Answer
photo

To edit the values of a dropdown, select it on the Canvas and then look to the Properties palette. Click on 'Edit Values' and a dialog will appear. To add a new value, click on the '+'. To edit a current value, select one of the values and click the 'gear' icon. To delete a value, select one and click the 'X' icon.

8bb2f6323a502c4f81f00135c2c299b5

Replies (5)
photo
1

I did get it managed to dynamically add the input of a text box to the item lists but now I have another problem not being able to place the newly added item on a new separate line. It is displayed next to the last line of the fixed item values.

photo
1

This tutorial might help you http://www.justinmind.com/prototyper/...

photo
2

Hi Victor,


Thanks for your prompt support.


but the tutorial you gave me still doesn't answer my question.


I want to know how to add a new item(data) to a drop down list on a NEW line,


adding

tag or some sort at runtime.


At the moment, whatever I add to the list sits on the same line of the last item.

photo
1

Sorry I misunderstood. The character ',' is used in drop downs to separate the values. So you just need to add a ',' to the new value you want to add.

photo
1

To edit the values of a dropdown, select it on the Canvas and then look to the Properties palette. Click on 'Edit Values' and a dialog will appear. To add a new value, click on the '+'. To edit a current value, select one of the values and click the 'gear' icon. To delete a value, select one and click the 'X' icon.

8bb2f6323a502c4f81f00135c2c299b5

Leave a Comment
 
Attach a file