Hello
I need to integrate chronoforms in K2 articles and pull email address from the extended fields of the k2 articles.
In k2 templates, here s the code i use to extract extended fields
and then to display the field i want
Any idea on how i can get the $extrafieldsid[4] to be used in chronoforms ? I ve tried some things but the variables are not recognized
Thanks
I need to integrate chronoforms in K2 articles and pull email address from the extended fields of the k2 articles.
In k2 templates, here s the code i use to extract extended fields
<?php
$extrafieldsid = array();
foreach($this->item->extra_fields as $itemid){
$extrafieldsid[$itemid->id] = $itemid->value;
}
?>and then to display the field i want
<?php echo $extrafieldsid[4];?>Any idea on how i can get the $extrafieldsid[4] to be used in chronoforms ? I ve tried some things but the variables are not recognized
Thanks
Hi schlogo,
I know nothing at all about K2 but if you can put the value in the page somewhere, maybe in a <div> tag??? then you can use JavaScript in ChronoForms to read the value and put it into a form input.
Bob
I know nothing at all about K2 but if you can put the value in the page somewhere, maybe in a <div> tag??? then you can use JavaScript in ChronoForms to read the value and put it into a form input.
Bob
thanks for your answer, i am not sure i want to put the email address in a div , ill see what i can find
tks
tks
This topic is locked and no more replies can be posted.
