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?
(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?
Solved! Go to Solution.
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
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.
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
@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
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.
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?
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.
Thank you for the answer. Seems I'll have to make it manually then (:
Sounds like a good candidate for a component!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
199 | |
98 | |
58 | |
56 | |
52 |
User | Count |
---|---|
257 | |
161 | |
87 | |
79 | |
68 |