Custom Field with static dropdown list

Hi!

I’m trying to add a CustomField module to my Forge app. I need this field to contain a static options list (a dropdown), but I can’t figure out how to do it.

From the docs and other examples I found, it seems like only strings are possible.

This out-of-box field contains the functionality I need:

image

Thanks,
Amit

Hi Amit! You can do it using CustomFieldEdit module. This way you can render dropdown in edit modal. The example shows how to set up Forge custom field with a static dropdown. I hope that this would help with your case.

Please be advised that rendering dropdown in inline edit for Forge custom fields is not possible. You may want to watch this ticket to be informed when it’s coming.

BR,
Szymon

Hi @sskorc,

Thank you for getting back to me.
Unfortunately, the CustomFieldEdit option is not what I’m looking for. I don’t want the dropdown to be opened in a modal.

I’m hoping that this improvement will be addressed soon.

Thanks,
Amit