9 years ago
3
Topic

Hi Forum,

I would like to know if its possible to auto generate a ticket number via Seblod's contact form? For example, I fill out the contact form and select the submit button, then via the receiving email address I would like the subject line to generate a ticket number within the subject line.

So basically, something as follows: Persons Name - #ticketNumber

Please assist with some direction if possible.

Thanks,

Dale

Get a Book for SEBLOD
175 Posts
webcastor
9 years ago
1
Level 1

Your request has 2 stages.

  1. Generate a ticket #
  2. Send an email with that ticket as part of subject line

To generate the ticket #, you can use the request id (such as art_id) or you can "salt" it with a random number

To send the email, use the email field, inside which you can use something like #name# - #ticket# as your subject line

9 years ago
0
Level 2

Thanks webcaster,

Do I have to create an extra field in my database, so that the ticket ID can be used? Or should I use an existing ID field? And is there a field to call request ID, then I name the alias #ticket#? Then of course I will call the #ticket# in my subject line.

Any further direction on this would be much appreciated.

Thanks,

Dale

572 Posts
_jrmo
9 years ago
0
Level 1

I think that Simon Dowdles' SD Concat plugin will work nicely here - http://www.seblod.com/products/2191

You can use the Joomla ID of the ticket by using <content> in the Concat field (read Simon's instructions on the product page) - to dress things up a bit, you could use a prefix of static text and the id after and concatene them together with the field.

You can then use #name_of_your_contact_field# in your email to return the ticket number.

Hope this helps!

_jrmo

Get a VIP membership