Hello. Thank you for contacting the Toolset support.
You will have to conditionally display the field on edit form so that if the user field city and listing_category has value then you should set the default value for the generic field otherwise not.
[creduserform]
[cred_field field="form_messages" class="alert alert-warning"]
<div class="row">
<div class="form-group col-sm-6">
<label for="%%FORM_ID%%_city">[cred_i18n name='city-label']Област[/cred_i18n]</label>
[wpv-conditional if="( '[wpv-user field='city']' eq '')"]
[cred_generic_field type='select' field='city']
{
"required":1,
"persist":1,
"default":["Благоевград"],
"options":[{"value":"Благоевград","label":"Благоевград"},{"value":"Бургас","label":"Бургас"},{"value":"Варна","label":"Варна"},{"value":"Велико Търново","label":"Велико Търново"},{"value":"Видин","label":"Видин"},{"value":"Враца","label":"Враца"},{"value":"Габрово","label":"Габрово"},{"value":"Добрич","label":"Добрич"},{"value":"Кърджали","label":"Кърджали"},{"value":"Кюстендил","label":"Кюстендил"},{"value":"Ловеч","label":"Ловеч"},{"value":"Монтана","label":"Монтана"},{"value":"Пазарджик","label":"Пазарджик"},{"value":"Перник","label":"Перник"},{"value":"Плевен","label":"Плевен"},{"value":"Пловдив","label":"Пловдив"},{"value":"Разград","label":"Разград"},{"value":"Русе","label":"Русе"},{"value":"Силистра","label":"Силистра"},{"value":"Сливен","label":"Сливен"},{"value":"Смолян","label":"Смолян"},{"value":"Софийска област","label":"Софийска област"},{"value":"София","label":"София"},{"value":"Стара Загора","label":"Стара Загора"},{"value":"Търговище","label":"Търговище"},{"value":"Хасково","label":"Хасково"},{"value":"Шумен","label":"Шумен"},{"value":"Ямбол","label":"Ямбол"}]
}
[/cred_generic_field]
[/wpv-conditional]
[wpv-conditional if="( '[wpv-user field='city']' ne '')"]
[cred_generic_field type='select' field='city']
{
"required":1,
"persist":1,
"default":"[wpv-user field='city']",
"options":[{"value":"Благоевград","label":"Благоевград"},{"value":"Бургас","label":"Бургас"},{"value":"Варна","label":"Варна"},{"value":"Велико Търново","label":"Велико Търново"},{"value":"Видин","label":"Видин"},{"value":"Враца","label":"Враца"},{"value":"Габрово","label":"Габрово"},{"value":"Добрич","label":"Добрич"},{"value":"Кърджали","label":"Кърджали"},{"value":"Кюстендил","label":"Кюстендил"},{"value":"Ловеч","label":"Ловеч"},{"value":"Монтана","label":"Монтана"},{"value":"Пазарджик","label":"Пазарджик"},{"value":"Перник","label":"Перник"},{"value":"Плевен","label":"Плевен"},{"value":"Пловдив","label":"Пловдив"},{"value":"Разград","label":"Разград"},{"value":"Русе","label":"Русе"},{"value":"Силистра","label":"Силистра"},{"value":"Сливен","label":"Сливен"},{"value":"Смолян","label":"Смолян"},{"value":"Софийска област","label":"Софийска област"},{"value":"София","label":"София"},{"value":"Стара Загора","label":"Стара Загора"},{"value":"Търговище","label":"Търговище"},{"value":"Хасково","label":"Хасково"},{"value":"Шумен","label":"Шумен"},{"value":"Ямбол","label":"Ямбол"}]
}
[/cred_generic_field]
[/wpv-conditional]
</div>
<div class="form-group col-sm-6">
<label for="%%FORM_ID%%_listing-category">[cred_i18n name='city-label']Категория TBC[/cred_i18n]</label>
[wpv-conditional if="( '[wpv-user field='listing_category']' eq '')"]
[cred_generic_field type='select' field='listing_category' class="" urlparam=""]
{
"required":1,
"persist":1,
"default":[77],
"options":[ [wpv-view name="get-all-listing-category-terms"] ]
}
[/cred_generic_field]
[/wpv-conditional]
[wpv-conditional if="( '[wpv-user field='listing_category']' ne '')"]
[cred_generic_field type='select' field='listing_category' class="" urlparam=""]
{
"required":1,
"persist":1,
"default":"[wpv-user field='listing_category']",
"options":[ [wpv-view name="get-all-listing-category-terms"] ]
}
[/cred_generic_field]
[/wpv-conditional]
</div>
</div>
<div class="row">
<div class="form-group col-sm-12">
[cred_field field='form_submit' output='bootstrap' value='Запази' class='btn btn-primary btn-lg']
</div>
</div>
[/creduserform]
Where as you can see I've added the conditional shortcode to display the form field and accordingly set the default value for it.