1. seiyass
  2. General
  3. Monday, July 13 2015, 03:46 PM
Hi I am not sure if this is a bug or I am missing something.

I have a custom text field with this Options:
1 | PHP
2 | Ajax
3 | Java
4 | VisualBasic
5 | C
6 | C++
7 | Pascal
8 | Cobol
9 | MATLAB
10 | HTML/CSS
11 | Javascript
12 | Aplicaciones Móviles
13 | Programación - Otros


On the menu-profile-list I have:

CUSTOM SQL WHERE: group_id IN (12) AND elige_programacion LIKE "%1%"

I want this to display only users with "PHP" selected, but it is displaying also 1, 10, 11, 12, and 13 (all that have a "1";)
Accepted Answer
admin Accepted Answer
Admin
Try with this:
group_id IN (12) AND elige_programacion LIKE '%"1"%'


for multi-values fields like Multiple select or checkboxes we use Json format to store data, so you will have something like this
["value1","value2","value3"]
  1. more than a month ago
  2. General
  3. # Permalink
seiyass Accepted Answer
Pro
Now it works fine!
Thanks a lot!
  1. more than a month ago
  2. General
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.