# Dynamically update available user field values during a profile fill in

**URL:** <https://meta.discourse.org/t/dynamically-update-available-user-field-values-during-a-profile-fill-in/261944>\
**Category:** Development\
**Created:** [April 17, 2023, 11:31am UTC](https://meta.discourse.org/t/dynamically-update-available-user-field-values-during-a-profile-fill-in/261944 "2023-04-17T11:31:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![philipp96](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philipp96/32/305474_2.png) [@philipp96](https://meta.discourse.org/u/philipp96)\
**Post date:** [April 17, 2023, 11:31am UTC](https://meta.discourse.org/t/dynamically-update-available-user-field-values-during-a-profile-fill-in/261944/1 "2023-04-17T11:31:57Z")

</div>

Thank you for the prompt responses @JammyDodger and @Canapin , I have a specific question:

I would like to update values in a custom field through a text field, which, for example, indicates the place of residence and is accompanied by a JSON.

[How to change user fields](https://meta.discourse.org/t/how-to-change-user-fields-with-api/147999/2) with API, there is only a example to creat new users or change value instead of the profil of a user trought custom field.

### As an example:

1. There is a dropdown custom field with values (e.g. Berlin, Hamburg).

2. There is a custom field with text, which is used when the user is not from Berlin or Hamburg; they enter “Hannover.”

3. I want to then add the dropdown custom field with values (e.g. Berlin, Hamburg, Hannover), but I do not know how to do this. It is a kind of automation to add cities that are not listed.

4. The dropdown custom field should depend on a JSON list from a custom field text.

---

_[View the full topic](https://meta.discourse.org/t/dynamically-update-available-user-field-values-during-a-profile-fill-in/261944)._
