
Hello,
I am attempting to split and take the first value from a choice column default value in gallery. Ihave placed this in a Label control within the gallery. I receive errors that it expects text value, however adding Text() does nothing.
First(
Split(ThisItem.'Latest step', ".")
)
ChatGPT had no idea and gave me lots of unuseful suggestions. Do any of you have a clue?
@shavora ,
You might need - for a Text Field
First(
Split(
ThisItem.'Latest step',
"."
)
).Value
For a Single Choice Field
First(
Split(
ThisItem.'Latest step'.Value,
"."
)
).Value
For a Multi-Choice field
First(
Split(
First(ThisItem.'Latest step').Value,
"."
)
).Value
As for the second comment, I think you can leave it at ChatGPT had no idea . . .
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps