Forums

Help with params

a.carrera 03 May, 2012
Hi there, I'm very new at chronoforms and I'm running out of ideas, my background on PHP is almost ZERO, NADA; and hoping and praying that I can handle your response.

Here we go:

PLATFORM
Joomla: 2.5.4
Chronoforms: 4.0 RC3.3

SCENARIO
I need to ask for feedback to my customers once I finish a job, that simple! I use to send them a regular, simple, plain email and then they can replay it.

CURRENT CREATION
I already create 2 chronoforms a)request b)feedback

CHRONOFORM A -- REQUEST (owner's side)
[text box] Invoice Number
[text box] Customer's email address
[submit button] submit
On EVENTS/SUBMIT i have an action called EMAIL where in the CONFIGURE/TEMPLATE area I typed the message for the customer and I already create a link to click on it and looks like this:
href="/index.php?option=com_chronoforms&chronoform=Feedback?

here is the thing where, my guess is my problem, the link above I took it from FORMS MANAGER/FRONT END VIEW

CHRONOFORM B -- FEEDBACK (Customer's side)
[text area] Customer's Feedback
[submit button] submit
And everything is working great. Thanks guys.

NEED
Here is my need, once I receive the customer's feedback, I'm lost because customer's invoice number is not in their reply and I don't want the customer type the invoice's number, because customers are lazy and don't want them to make any mistakes or disencourage them to feed me back because they need to look for the invoice or whatever. So better I provide them the invoice number, but I want to make my job easy with this amazing tool.

What can I do to know this information? In my request I'm sending the invoice number though, is there a solution with PARAMETERS or something usefull like that? Please a YES is not a valid answer. I would love to keep the invoice number in a hidden text box at the FEEDBACK form so when the customer submit the feedback form I can receive both the customer's feedback and invoice in a single email. 😀
GreyHead 06 May, 2012
Hi a.carrera,

I'd probably create one database table for customers and give each a unique id; and then a second table for messages and give each message (or conversation) a second unique ID.

Then you can add the ids - at least the message ID to the URL
index.php?option=com_chronoforms&chronoform=Feedback&message=997854G

When the customer uses this link to reply you can use a database query (or the DB Load Record action) to identify the customer and the message.

A joint id might be more useful like customerid:messageid or &message=RTS:997854G

Bob
This topic is locked and no more replies can be posted.