Forums

Record Load DB - How to publish the generated link

ev.garcia 04 Nov, 2012
Hi, Bob

I have a form that needs to be loaded from a registry database for the user who is logged on (cf_user_id).
I followed the tutorial (CFV4_db_record_loader) and it worked properly when I call
http://localhost/elg/index.php?option=com_chronoforms&chronoform=f1_empregador&token=531 directly in the browser.
The problem is that I cannot post at joomla with the options I have:

One. By the plugin:

Is there a way to pass the parameters here?

2nd. For the menu item:

index.php? com_chronoforms option = & view = form
This link is protected and I cannot change it. Is there any way to change?
That's the way I'm publishing in joomla.

3rd. By the module:

Is there a way to pass the parameters here?

Another problem is how to pass the &token = cf_user_id to the link.

Thanks,
Max_admin 05 Nov, 2012
Hi,

You can add the full link into a menu item of type "link".

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
ev.garcia 06 Nov, 2012
Hi,

worked properly ...

Now, we just need to know how to pass the token, which must be the id of the user

the link is:

index.php?option=com_chronoforms&chronoform=f1_empregador&token=cf_user_id

Thanks,
Max_admin 06 Nov, 2012
Logged in user ? if yes then you should get this using PHP code in your form, this is explained in many forum posts and in the FAQs section.

but if you want to pass some X user id then you need to generate the link dynamically somehow, using a different form maybe.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
ev.garcia 07 Nov, 2012
Thanks, I found the way to do it.
One last question. After the db record loader and before the show html is data stored in the array $ form too?
I need to get a date from the database and reverse to show in the form.

Rgs,
GreyHead 07 Nov, 2012
Hi ev.garcia,

Yes it is all stored in the $form-> data array. Use a Debugger action to see exactly where it is stored.

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