Forums

How to link two forms - each included in articles?

HerKle 26 Nov, 2014
Hi,
I searched for this topic, but found no answer:

I have an article "grouplist" which includes a CFv4 Multi Record loader via {component index.php?option=com_chronoforms&view=form&chronoform=group_list}.

Each of the listed groups shall have a link to another article "groupdetail" which includes {component index.php?option=com_chronoforms&view=form&chronoform=group_detail}.

How/Where do I have to add the token (group-id) to make the second article show the group_detail data?

Thanks for your advice,
Herbert
HerKle 26 Nov, 2014
Sorry, Professeur Tournesol, but your automated service didn't help me. :-(
HerKle 26 Nov, 2014
Alternate question:
The article grouplist is in
root/category/some-subcategory/some-further-subcategory

If I use the link as direct link to the component such as:
index.php?option=com_chronoforms&view=form&chronoform=group_detail&token=token

The data show up - but unfortunately in
root/

How can I make CF stay in the current path?
GreyHead 26 Nov, 2014
Hi Herbert,

I'm sorry but I don't understand your question at all :-(

Is the group_detail id in the data you are loading from the database?

Is the problem creating the link URL or that it doesn't work?

Where does 'root' come into it?

Bob
HerKle 26 Nov, 2014
Hi Bob,

The form "group-list" loads a bunch of joined data (including the field group-id) from 3 tables of the database into the article "group-list" in some subcategory of Joomla's article structure and forms a list there:
Group A
Group B
Group C

Each group-list item shall have a link with something like token=group-id - just to open the form "group-detail" which loads more joined data from those 3 tables - but only for the selected one group:
Group B - Meeting point - chair person - google map - pics etc.

Now I tried to put the form "group-detail" into an article "group-detail" - but there the token was not recognized (my first post).

Than I tried to use the mere component link (my second post), but there the data are no longer shown within the subcategory of
the original article, but appear in Joomla's start page (which has completely different content and makes no sense to show the group details there). And that's why I tried to include the form into an article in the first place.

So basically the question is how
{component index.php?option=com_chronoforms&view=form&chronoform=group-detail}
can make select the group-id?
In this chronoform group-detail I filled in
- Multi Record Loader->Tab Basic->DB Field: group-id
- Multi Record Loader->Tab Basic->Request Param: token
following your tutorials.
So what else is to do so that the token is recognized by the form?

Hope you understand now,
Herbert
HerKle 26 Nov, 2014
Answer
I got it solved:

I entered code in the Joomla article to look if a token exists, and then load the detail form with that token, else the general list form.

Sometimes I wouldn't see the wood for the trees. :-)

Best regards,
Herbert
This topic is locked and no more replies can be posted.