# How to select value for FName uproperty from array of FNames by dropdown list in editor details?

**URL:** <https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939>\
**Category:** C++\
**Tags:** UProperty, String-Tables, unreal-engine, UE4\
**Created:** [March 18, 2022, 3:35pm UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939 "2022-03-18T15:35:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mykola.shatokhin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mykola.shatokhin](https://forums.unrealengine.com/u/mykola.shatokhin)\
**Post date:** [March 18, 2022, 3:35pm UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/1 "2022-03-18T15:35:33Z")

</div>

I have an actor class which have a FName UPROPERTY and also an array of strings loaded from config. I need to select a value from that array in editor details of that actor and assign it to that property instead of entering that string manually.

I need the same behaviour as UENUM value selection but for FName.

How to do it?

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [March 19, 2022, 10:07am UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/2 "2022-03-19T10:07:12Z")

</div>

> **[Details Panel Customization](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Slate/DetailsCustomization/)**
>
> Guide to customizing the display of properties in the Details panels within Unreal Editor.

---

<div class="post-metadata">

**Author:** ![Neyl\_S](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neyl_s/32/263712_2.png) [@Neyl\_S](https://forums.unrealengine.com/u/Neyl_S)\
**Post date:** [March 19, 2022, 10:22am UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/3 "2022-03-19T10:22:39Z")

</div>

`GetOptions` specifier is exactly what you need

> **[All UPROPERTY Specifiers](https://benui.ca/unreal/uproperty/#getoptions)**
>
> Both main and meta specifiers, including undocumented ones.

---

<div class="post-metadata">

**Author:** ![mykola.shatokhin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mykola.shatokhin](https://forums.unrealengine.com/u/mykola.shatokhin)\
**Post date:** [March 21, 2022, 11:44am UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/4 "2022-03-21T11:44:37Z")

</div>

> [@Neyl\_S](#):
>
> `GetOptions` specifier is exactly what you need

Wow! Looks like that is what I seeked. But I have a problem with it.

The textfield is converted to combobox but when I open it there is no any options in it. And I can’t select anything. Also, I don’t see this specifier in the official Unreal documentation [Property Specifiers | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/GameplayArchitecture/Properties/Specifiers/)

UE 4.26

---

<div class="post-metadata">

**Author:** ![mykola.shatokhin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mykola.shatokhin](https://forums.unrealengine.com/u/mykola.shatokhin)\
**Post date:** [March 21, 2022, 11:46am UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/5 "2022-03-21T11:46:10Z")

</div>

> [@Jambax](#):
>
> [Details Panel Customization | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Slate/DetailsCustomization/)

Can you give me a short source example how to do what I need. I tried to use it but I can’t understand. It is too complicated.

And also, I’m not making module, just a class in general game code. How to register customizer for class instead of module?

---

<div class="post-metadata">

**Author:** ![mykola.shatokhin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mykola.shatokhin](https://forums.unrealengine.com/u/mykola.shatokhin)\
**Post date:** [March 21, 2022, 12:01pm UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/6 "2022-03-21T12:01:31Z")

</div>

> [@Neyl\_S](#):
>
> `GetOptions` specifier is exactly what you need

The function that I set here is not calling.

---

<div class="post-metadata">

**Author:** ![mykola.shatokhin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mykola.shatokhin](https://forums.unrealengine.com/u/mykola.shatokhin)\
**Post date:** [March 21, 2022, 2:06pm UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/7 "2022-03-21T14:06:18Z")

</div>

It’s working in game (if I press F8), but not working in editor

---

<div class="post-metadata">

**Author:** ![mykola.shatokhin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mykola.shatokhin](https://forums.unrealengine.com/u/mykola.shatokhin)\
**Post date:** [March 21, 2022, 4:09pm UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/8 "2022-03-21T16:09:04Z")

</div>

I found what was wrong. I needed to add CallInEditor to the options function:

```auto
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (GetOptions = "GetNameOptions"))
FName Name;

UFUNCTION(CallInEditor)
TArray<FString> GetNameOptions() const
{
    return { TEXT("N1"), TEXT("N2"), TEXT("N3") };
}

```

---

<div class="post-metadata">

**Author:** ![GsCreed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GsCreed](https://forums.unrealengine.com/u/GsCreed)\
**Post date:** [January 30, 2023, 4:15am UTC](https://forums.unrealengine.com/t/how-to-select-value-for-fname-uproperty-from-array-of-fnames-by-dropdown-list-in-editor-details/507939/9 "2023-01-30T04:15:38Z")

</div>

How did you make it work? I tried, but not showing any buttons but only array
