How to show the ID in the Email result

Questions and bug reports for current release of CKForms

How to show the ID in the Email result

Postby joaoferraz » Tue Aug 03, 2010 10:49 am

Hi,
I would like to show the form "ID" field in the Email result. Someone can tell me how can I do that?
Thanks
joaoferraz
 
Posts: 5
Joined: Tue Aug 03, 2010 10:40 am
Top

Re: How to show the ID in the Email result

Postby joaoferraz » Wed Aug 04, 2010 6:40 pm

Nobody???
joaoferraz
 
Posts: 5
Joined: Tue Aug 03, 2010 10:40 am
Top

Re: How to show the ID in the Email result

Postby Simkea » Thu Aug 05, 2010 7:30 pm

add a hiddenfield to your form. :)
Simkea
 
Posts: 6
Joined: Thu Jul 22, 2010 1:06 pm
Top

Re: How to show the ID in the Email result

Postby joaoferraz » Thu Aug 05, 2010 10:29 pm

Simkea wrote:add a hiddenfield to your form. :)


Hi Simkea, thanks for your reply.
Ok, just a hiddenfield ?
What I put in the Value?

Rgds,
joaoferraz
 
Posts: 5
Joined: Tue Aug 03, 2010 10:40 am
Top

Re: How to show the ID in the Email result

Postby Simkea » Fri Aug 06, 2010 1:50 pm

ok.

i dont understand... the hidden fields will not send in an email :(...

but you can use follow workaround:
open this file: components/com_ckforms/models/ckforms.php
change Row 412 to:
Code: Select all
$mailBody = "Form : ".$ckform->title." [".$ckform->name."](".$ckform->id.")<br />\n"; 


nice day
Simkea
 
Posts: 6
Joined: Thu Jul 22, 2010 1:06 pm
Top

Re: How to show the ID in the Email result

Postby joaoferraz » Fri Aug 06, 2010 3:44 pm

Hi Simkea, thanks again for your reply and sorry my english. I'm from Brazil.

I need to show the number of the "ID" field and not the ID of the form.

So, in jos_ckforms_1 I have:
ID=1
ID=2
ID=3
and etc...

Please take a look in the image attached.

Rgds,
Attachments
jos_ckform_1.jpg
jos_ckform_1.jpg (82.66 KiB) Viewed 283 times
joaoferraz
 
Posts: 5
Joined: Tue Aug 03, 2010 10:40 am
Top

Re: How to show the ID in the Email result

Postby Simkea » Fri Aug 06, 2010 6:03 pm

same script an row...
try this:
Code: Select all
$mailBody = "Form : ".$ckform->title." [".$ckform->name."](".(is_object($dba)?$dba->insertid():"").")<br />\n";
Simkea
 
Posts: 6
Joined: Thu Jul 22, 2010 1:06 pm
Top

Re: How to show the ID in the Email result

Postby joaoferraz » Sun Aug 08, 2010 11:52 am

That's it!
Thankyou very much my friend.
Rgds
joaoferraz
 
Posts: 5
Joined: Tue Aug 03, 2010 10:40 am
Top


Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: No registered users and 0 guests