Forums

DB Load then put on checkbox values

LucasAnon 07 Jun, 2014
Hello, i'll try to illustrate my problem while i ask here.
I'm trying to make a form. The user select some "User groups" with checkboxes, then the form mails each user from the group the user selected.
Then he types a message and when submitted the members get mailed.

First problem, i can't recieve data from db (the usergroup table)
This is what i'm doing:
> DB Read action cfg:
[attachment=0]2.png[/attachment]
(The other options are blank, but futher i'll add the php line for avoid the "super user" and "public" group)

> The checkboxes config
[attachment=1]3.png[/attachment]


> The events
[attachment=2]4.png[/attachment]


Probably i'm making several mistakes, right? What should i do to begin this?

PS2: Can i keep this thread to solve the other problems (they might appear lol)

Thanks for your patience and this is an AWESOME extension, i'll always use in all my client's sites.
LucasAnon 12 Jun, 2014
Anyone? ๐Ÿ˜‘ ๐Ÿ˜Ÿ
GreyHead 12 Jun, 2014
Hi LucasAnon,

I think that you also need to set the Value Key to id and the Text Key to title in the Edit Element Settings.

Bob
LucasAnon 12 Jun, 2014
Hey Bob, thanks for your attention..
Well i'm not even seeing on DB Viewer in backend.

and i dont have idea of what i should put on value key and text key :/
GreyHead 13 Jun, 2014
Hi Lucas

. . . set the Value Key to id and the Text Key to title . . .

Bob
LucasAnon 13 Jun, 2014
Hey Bob, i've already tried this.
Value Key = id
Text Key = title

it still don't show up the db data.


Data Path = data

and i don't have idea what's happening...
GreyHead 13 Jun, 2014
Hi LucasAnon,

They aren't showing in the the image you posted???

Bob
LucasAnon 13 Jun, 2014
i did before i took the screenshot, then it didn't worked.. this way i thought i did it wrong, now it's filled up with the information "id" and "title" now again as u said.. and still don't work๐Ÿ˜Ÿ

it doesn't show up the "user categories". But if i look with phpmyadmin, they're there
LucasAnon 24 Jun, 2014
Bob, sorry bothering you, but i've been trying without sucess :/

are this conditions correct?

return array("title" => $form->data("fornecedores"));


the model id is set as "data"


field name: fornecedores[]
field id: fornecedores
options: nothing


--
dynamic data:
data path: fornecedores
value key: id
value text: title

---
LucasAnon 02 Jul, 2014
Ok bob, i've already readed tons of time the FAQ, a lot of forums, i've been trying this for more then a month, without success!
The informations are too complicated, i guess...

i dont know how to set the field name, the "data", model id, everything is too confusing for me..

please i really need some help to finish a work, it would be great if i got one support๐Ÿ˜Ÿ

I'm gonna upload the printscreen. Probably i did more mistakes then it had before.. but, whatever, i've tried everything, changing everything..
[attachment=0]1.png[/attachment]
[attachment=1]2.png[/attachment]
[attachment=2]3.png[/attachment]
This topic is locked and no more replies can be posted.