Extract text

Actions & Logic

I'm new to FF and struggling to find a way to extract a string from another one.
The case: I have a dropdown menu with options picked up from a constant list called TYPES. all options look like this: Description (code) - Example: Training Record (TG)

I want to show the full text as a label in the dropdown menu - Training Record (TG) but the returned value to be TG only.
Is there a way to extract string between the ( ). or if there's a better workaround to solve this.

I'm aware that I can define them manually, but I need somehow to automate this bit.

What have you tried so far?

I tried code expressions, but I have limited knowledge how to write them.

Did you check FlutterFlow's Documentation for this topic?
No
2
3 replies