cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate V
Advocate V

Help with dropdown lenght & error

Hello all,

In my app I have to do a dropdown (or combobox) with a list of options sent by the user. I have typed the options in the 'items' property of the dropdown I used, however, some parts are cut due to lenght. Is there a way to make it this be seen completely? Or maybe have it be in 2 lines?

dropboxComentario.png

 

(Solved) The other question is: the same dropdown, on its datacard has an error. I originally had it as a one-line edit text card, then deleted the inputText, added dropdown and used same 'name' on dropdown that the inputText had. Now the card has an error in the 'Update' property, which is DataCardValue64.Text; the error is the highlighted "Text" part on it. Error says: "Name isn't valid. The identifier isn't recognized" (related to the .Text on the Update).

What can I do to fix this? 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Anonymous
Not applicable

Hi @FelipeCaru,

 

For your first problem, I really don't know, sorry...

 

For your second problem, you have to change your .Text (which is a statement associated to TextBox) by a .Selected.Result or by .SelectedText.Value

View solution in original post

@FelipeCaru 

No, there is no Wrap property for those controls.  Also, DropDown controls are one-line only.  ComboBoxes have the option of being two lines.

As for the reference to the posting - yes, building your own control is an option, although a bit of work to do.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @FelipeCaru,

 

For your first problem, I really don't know, sorry...

 

For your second problem, you have to change your .Text (which is a statement associated to TextBox) by a .Selected.Result or by .SelectedText.Value

View solution in original post

@Anonymous 

Thank you, that did indeed work/fix what I was having error with. Will mark that as an answer after I get help for my first issue

Super User III
Super User III

@FelipeCaru 

So, I am assuming that increasing the width of the DropDown is not an option...

Perhaps decreasing the font size of the ComboBox?

 

If not, then it gets a little interesting.  Yes, you can use a 2 line ComboBox for this, you just need to be a little creative on the way that works.  However, one thing to keep in mind is that, even though you might be 2-lining the dropdown selections "menu", the value that appears in the ComboBox itself will still only be one line.

 

An option is to cut the values you have in two with a formula like this in your Items property of the ComboBox:

ForAll(
    ["Loooooooooong Text Value That will not fit", 
     "Shorter Value",
     "Some more long and lenghty and big text"], 
   {
    Value1:Left(Value,20) & If(Len(Value)>19 && Right(Left(Value,20),1)<>" ", "-"), 
    Value2:Right(Value,Len(Value)-20)
   }
)

This will provide your ComboBox with an Items data signature of a table with two columns - Value1 and Value2.  You can then be in 2 line mode on the combobox and specify Value1 and Value2 for the display fields.

However...this is a bit ugly as words can get chopped in between lines (there is a little check in Value1 to see if a word is chopped and to put a hyphen in).

Not the cleanest way, but it would work for you possibly.

 

As for the Error you are getting.  Yes, you replaced the Text control with a DropDown.  The dropdown does not have a text property.  You will need to fix the Update formula to match the properties of the DropDown control. Most likely with something like : DataCardValue64.Selected.Value (or whatever you have that corresponds to the items of the DropDown)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

@RandyHayes 

So I am guessing that both CB and Dropdown do not have some kind of 'wrap' option?
Also, would the solution here for a SP list (if I recall correctly) work for a Combobox / dropdown?

https://powerusers.microsoft.com/t5/General-Discussion/PowerApps-Dropdown-Options-amp-Labels-Are-Cut...

@FelipeCaru 

No, there is no Wrap property for those controls.  Also, DropDown controls are one-line only.  ComboBoxes have the option of being two lines.

As for the reference to the posting - yes, building your own control is an option, although a bit of work to do.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

@RandyHayes 

Thank you for the answer. Seems I'll have to make it manually then (:

@FelipeCaru 

Sounds like a good candidate for a component!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (91,058)