[#3739] images with multi checkbox

11 years 10 months ago - 11 years 6 months ago #205087 by deluxe_
[#3739] images with multi checkbox was created by deluxe_
i try to get images with multicheckboxes,
new field - check box (multiple)
as value:
<img src="images/abcimage.jpg"

as user you can see the img with checkbox only in the profile edit,
check and save,
but it will not schow on the profile?

please help
sorry my english is very bad.

Please Log in to join the conversation.

11 years 10 months ago #205090 by krileon
Replied by krileon on topic Re: images with multi checkbox
You can't have HTML values for select fields. You'll need to use a delimiter field to render your fields values. Example as follows.

[cb:if cb_dropdown includes "Value 1"]<img src="/images/myimage.png" />[/cb:if]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

11 years 10 months ago #205105 by deluxe_
Replied by deluxe_ on topic Re: images with multi checkbox
thanks a lot i hope i understand it, like this

[cb:if cb_ multicheckbox includes "Value 1"]<img src="images/myimage.jpg"/>[/cb:if]
[cb:if cb_ multicheckbox includes "Value 2"]<img src="images/myimage2.jpg"/>[/cb:if]
[cb:if cb_ multicheckbox includes "Value 3"]<img src="images/myimage3.jpg"/>[/cb:if]

what i write in the value in multicheckbox? or iam completly wrong

Please Log in to join the conversation.

11 years 10 months ago #205130 by deluxe_
Replied by deluxe_ on topic Re: images with multi checkbox
[cb:if checkbox includes "abc"]<img src="images/.......jpg" />[/cb:if]
[cb:if cb_checkbox includes "abc"]<img src="images/.......jpg" />[/cb:if]
[cb:if cb_(fieldname) includes "abc"]<img src="images/.......jpg" />[/cb:if]

is this correct?
how can i show this value´s?
please, i tried over houres now, every kombination, but it will not work
witch syntax for output?

Please Log in to join the conversation.

11 years 10 months ago #205135 by deluxe_
Replied by deluxe_ on topic Re: images with multi checkbox
[cb:if cb_6 includes "abc"]img[/cb:if]

now i understand and it works, but only with 1 selct.
is it not possible, on any way choose multi selcet?

i need lot of seal´s and brandings (around 100), that the user can choose in a list, (or picture list direkt, will be the best).
and every choosen need to show in the profile

do i really need to build with every pic, a own dropdown field with one entrie??
(and for every picture a delimiter)

Please Log in to join the conversation.

11 years 10 months ago #205204 by krileon
Replied by krileon on topic Re: images with multi checkbox
You should just be able to add more includes. You add an IF substitution for every value you want to render as an image or however you want to render them. Example as follows.

[cb:if cb_6 includes "abc"]img[/cb:if]
[cb:if cb_6 includes "123"]img[/cb:if]
[cb:if cb_6 includes "456"]img[/cb:if]
[cb:if cb_6 includes "xyz"]img[/cb:if]


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.194 seconds

Facebook Twitter LinkedIn