10 years ago
2
Topic
Hi All,
most probably somebody has a similar question...
I created 10 user groups with different ACLs and I want my users to choose muliple groups. So I made checkbox set with values=ID's of my groups. In this way I want to store checked values (using Jquery???) in separate "input" field.
I started with checkboxes...but to get "live" values of checked items separated by comma...seems Jquery script is needed.

Of course I can create 10 additional fields to retreive value by value (when it's checked), then use SD concat to join values in proper way and finally store info in DB.

Is there an other ideas/solutions ??...I think not only me have similar difficulties with lack of JS code...but Seblod uses Jquery - very powerfull tool !
Get a VIP membership
10 years ago
1
Level 1
OKe. I tried to allow users choose between 10 custom user groups. Any JS will not help in this case, I assume....
  1. First step, I created seblod checkbox field with 10 options=names of groups and values=ID's of those groups.
  2. Next step, I created 10 seblod text fields (without storage) and set conditions (if group is checked=>a fiedl get value ID of group).
  3. Final step, I created SD concat field to concatenate values of those text fields like "1,2,3,4" etc.

I've found out that J3! creates one row in table #__user_usergroup_map per each group,...like
group_id /user_id
666 / 1
666 / 2
where 666 is ID of user and 1,2...user group(s).

Therefore, it's not possible to write the retreived data from SD concat in the DB table.
Any ideas how to setup fields??? maybe there is a solution how to customize standard user_groups field and allow users multi-select only custom group ID's (at the moment user may choose Administrator!! group)



10 years ago
0
Level 2
...just tried select dinamic field with parent ID=parent custom group. Field is working OK, only makes child-groups available for user.
But i got error 1062, what does it mean? Joomla is trying to add an ID (standard, its own, from options) together with seblod field in one DB table?
Get a VIP membership