Forums

variable pass to plugin

FranAyala 02 Sep, 2012
Hi all:

I have Joomla! 2.5 with K2 installed. Testing'm ChronoForms to buy the retail version, but before i need to do something and I have no idea to be sure that this is the solution that i need.

I have an article in K2. Insert a form with the plugin

{chronoform}form{/chronoforms}
.

I need to have a hidden field on the form that takes the value of K2 article title to send along with the other data that the user entered on the form.

This form is always the same for all items K2, so dynamically to take the title of the article where it is inserted.

I know how to insert a variable in the title of the article, but do not know how to pass the ChronoForms plugin.

I tried to insert the value in the $ _SESSION variable and retrieve it from the code of the form and attach it to the hidden field VALUE label, but I always take the title of the previous page you have visited. Never present.

This is another way to do this?

THANKS!
Max_admin 03 Sep, 2012
Hi Fran,

In your form "on load" event, please add a "debugger", see if any loaded data variables match the article id ? if yes then you can use it to load the article title from the K2 table.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.