Just installed chrono forms v4 and Joomla v1.7. The primary
functionality, I want to achieve with chrono is as follows.
1. user clicks on a form link in an article
2. form is loaded in a lightbox
3. article id and url is captured in hidden input fields.
I have used the custom feature of chrono forms to build my form.
Here is the code, I am using to implement step 3.
<?php
$article_id = JRequest::getInt('id', 0, 'get');
$url = JRequest::getString('url', '', 'get');
?>
<input type="hidden" name="ArticleID" value="<?php echo $article_id; ?>" id="articleid"/>
<input type="hidden" name="ArticleUrl" value="<?php echo $url; ?>" id="articleurl"/>
This code is placed within the form tag <form>...code....</form>
This does not work. From related post in the forum, this should work.
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=23891
I am speculating that it is my form behaviour (loading form in a pop box) that
is causing JRequest not to work. Is this correct? If so, how do I overcome this
problem?
Thinking in this direction, I used the form wizard to run the JRequest code
in controller and view modes during form load (on load event). This
does not work either.
What I am missing?
functionality, I want to achieve with chrono is as follows.
1. user clicks on a form link in an article
2. form is loaded in a lightbox
3. article id and url is captured in hidden input fields.
I have used the custom feature of chrono forms to build my form.
Here is the code, I am using to implement step 3.
<?php
$article_id = JRequest::getInt('id', 0, 'get');
$url = JRequest::getString('url', '', 'get');
?>
<input type="hidden" name="ArticleID" value="<?php echo $article_id; ?>" id="articleid"/>
<input type="hidden" name="ArticleUrl" value="<?php echo $url; ?>" id="articleurl"/>
This code is placed within the form tag <form>...code....</form>
This does not work. From related post in the forum, this should work.
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=23891
I am speculating that it is my form behaviour (loading form in a pop box) that
is causing JRequest not to work. Is this correct? If so, how do I overcome this
problem?
Thinking in this direction, I used the form wizard to run the JRequest code
in controller and view modes during form load (on load event). This
does not work either.
What I am missing?