Badge
This topic contains 15 replies, has 3 voices, and was last updated by virginie 5 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 5, 2020 at 2:41 pm #528910
Hi,
I use the badge function for checkbox fields and it works very well, how can I use it for multiselect fields?
Thanks
February 5, 2020 at 3:45 pm #528921Hi virginie,
Thanks for your post. Sorry, I’m not getting this. Which “badge function for multiselect fields” are you referring to?
February 5, 2020 at 4:49 pm #528926Hi kor,
For example, in custom fields, for a mutiselect field, how can I make the selected answer appear in a badge?
Am I clear?
Thanks
February 5, 2020 at 7:01 pm #528937For example, I would like to display the types of payment on the ads (see captures).
how to configure gd_post_badge for multiselect fields?February 6, 2020 at 8:28 pm #529155You can use is_contains
[gd_post_badge key="payment_methods" condition="is_contains" search="Visa" badge="Visa" bg_color="#0073aa" txt_color="#ffffff"]February 7, 2020 at 2:12 pm #529297Thanks alex
It’s not working.Actually, I’d like to know if it’s possible that a badge could be displayed for each choice.
for example if the user checks credit cards + cash + bank tranfer, a badge for each option checked is displayed.
is it possible?
Thanks
February 7, 2020 at 3:46 pm #529317Try using the shortcode builder. To use the code I shared you will need to update the key and search value.
February 7, 2020 at 3:53 pm #529321yes I tried that with the generator and the good key etc
Is there anything else to set up?
Thanks
February 8, 2020 at 1:24 am #529414Nope, I just tried it again with a widget and it works as expected.
Try a widget?If that doesn’t work please share WP Admin credentials so we can check the settings.
February 8, 2020 at 12:57 pm #529446yes thank you alex, in what you propose you have to create a badge model for each available option.
In fact, I thought there might be a solution to create an empty badge where all the selected answers are displayed.
That’s why I thought it didn’t work, but assigning a badge per answer works very well, it’s just a bit long because I have a lot of options.
is there a place where I can find explanations on the different configurations ( empty , no empty etc…)
A big thank you, alex, for your help.
February 9, 2020 at 6:08 pm #529557Yes, badges for each.
empty means the field has 0 or no value
not empty means it has some valueFebruary 11, 2020 at 3:51 pm #529821Hi,
ok
and is it possible to create a badge for a text field?
thank youFebruary 11, 2020 at 9:16 pm #529874Yes, you could use the ‘is not empty’ setting, then for the badge use %%input%% to show the value entered into the field.
February 12, 2020 at 11:25 am #529950Hi,
I tested and I must make a mistake because it’s %%input%% that shows up on the badge.
Here is what I configured, could you tell me how to fix it, please?
[gd_post_badge key=”situation” condition=”is_not_empty” badge=”%% input %%” bg_color=”#408080″ txt_color=”#ffffff” size=”medium”]
Thank you in advance
February 12, 2020 at 7:27 pm #530027This works for me:
[gd_post_badge key="some_text" condition="is_not_empty" badge="%%input%%" bg_color="#0073aa" txt_color="#ffffff" size="extra-large"]Looks like you have some extra spaces in the badge=
%%input%%%% input %% -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket