Skip Navigation

[Resolved] Having an additional option of no selection on custom dropdown

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 1 voice.

Last updated by georgiI 1 day, 16 hours ago.

Assisted by: Minesh.

Author
Posts
#2790982
111.PNG

Hi, sorry once again for looking for help, but the website I'm working on gets more and more complex by my client.

Toolset support added a custom dropdown on account's page, so it predefines a search result - hidden link
Can be accessed by logging in as a payed member and I've made a member for that. Name: test, Password: test.

By clicking the button you go to search results with selected city(област) and category(категория). So far, so good, but the client wants having an additional option on account page with no selection, so the member can see all cities and category and if they want to select only one city and category. Like being in search, where there is no selection and user sees all searches.
hidden link

User form ID: 9509

#2790994

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please send me admin access details and let me check what we can do there.

However - you already know the workflow and what form is using, the support is aim to give support if Toolset feature is not working or you have any issue like compatibility etc..etc..

We can not work like this and implement function for your every client request. I hope this does makes sense.

I suggest - you should edit your form and add the default option to the dropdown and save your form and check if that helps you to resolve your issue.

#2791000
222.PNG

Hi,
I understand that, but unfortunately this was added by support and I've tried editing it myself and it does not work, since it's added via code. That is for both fields. It simply did not work when I just added "default: none".

This does not appear private message, so is there any other way to share admin details with you?

#2791008

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I understand that was added by support but you must do such modification on your own.

What is the default optoin text you want to set?

However,
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2791024

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now. To your form:
- hidden link

I've adjusted the to defualt option as given under:

<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":"0","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":"Шумен"},{"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":"0","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":"Шумен"},{"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']Категория[/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":[{"value":"0","label":"всички категории"},[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":[ {"value":"0","label":"всички категории"}, [wpv-view name="get-all-listing-category-terms"] ]
}
[/cred_generic_field]
 [/wpv-conditional]

Where:

For city: {"value":"0","label":"всички градове"},
For category: {"value":"0","label":"всички категории"},

#2791030

Thank you, that worked!