Re: integration with contacts
nik600 <[email protected]> Wed, 7 Dec 2005 17:20:11 +0100
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Message-ID | <[email protected]> |
On 12/7/05, Joel Palmius <[email protected]> wrote: > Sorry, I still don't understand. Do you need different questions for > different contacts? no > > Or maybe the first question being a choice on which contact you are > currently answering for? yes!! > > In the former case you'd have to write one survey per contact, since each > survey is supposed to be fixed. In the second case you could use an IMPORT > tag to populate the LIST with values from the contact database. Something > like: > > <IMPORT DBIDSN="DBI:Pg:dbname=contacts" DBIUSER="somebody" DBITABLE="contacts" VISIBLE="no" > > <ARRAY NAME="contname" FIELD="contact_name" /> > <ARRAY NAME="contid" FIELD="contact_id" /> > </IMPORT> > > <LIST NAME="acontact" CAPTION="Which contact are we talking about?" /> > <DBLISTELEMENT CAPTIONARRAY="contname" VALUEARRAY="contid" /> > </LIST> > > The variable "acontact" submitted with the answers would then point to a > selected contact_id. thanks a lot Skickat av nik600 <[email protected]> till survey-discussion