K2 article title in form field

cbmrulez 23 Mar, 2012
Hi,
I'm sorry, I read other similar posts, but I did't find my answer.

I'm on Joomla 2.5, chronoforms 4 and K2 component.

I would like to make a "Book Now" button in every Special Offers articles, that leads to a form with the field "subject" or "promo" filled with the k2 article title. I also need that the email I receive shows the subject or promo field, so I can read what offer the customer is booking.

I think it could be done by adding a link on every articles end, that leads to the correct form and send the k2 article title to the subject field. But I don't know how to compose this link and how to modify the form html code.

Can you help me, please?

Thanks in advance for your help!

Best regards
Mario
GreyHead 23 Mar, 2012
Hi Mario,

Sorry, I don't know anything about K2 - if you can find out how to get the information you need from K2 into the link then it's simple to add it into the form in ChronoForms.

Bob
cbmrulez 23 Mar, 2012
Thank you for your reply.

Ok, I will think about how to get the title information from k2 articles, but you could explain me the rest of the process?

If I discover the string to get the title from k2 articles, where will I need to put that string?

Can you please write me a simple step by step to obtain the result?

Thank you in advance for your patience.

Bye,
Mario
GreyHead 24 Mar, 2012
Hi Mario,

If you add the variables to the link from K2 then ChronoForms will automatically add them to the $form->data array and you an use them with any of the other actions.

Bob
frennanfilms 28 Apr, 2012
Did this ever get solved? Im running into the same situation at the moment and awaiting replies on the K2 boards... but figured I would check here as well.

Thanks in advance! 😀
GreyHead 30 Apr, 2012
Hi frennanfilesm,

Sorry, not as far as I recall :-(

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