Forums

Chronoforms an backend forms

cachito 01 Sep, 2014
Hi, i'm again.

I use Chronoforms to add some additional informations to the User Profile. This works fine now.

The next step is to present this additional informations also in the backend. How can i replace the Backend User-List and the Backend User-Edit? Has anyone a hint for me?

Greetings
Gerhard
GreyHead 02 Sep, 2014
Hi Gerhard,

You can probably build ChronoForms that will do this - but in general I recommend not messing with the standard Joomla! tables as it may cause problems with future upgrades. Reading and writing the standard values is OK, adding new columns or changing the purpose of columns is not.

Bob
cachito 02 Sep, 2014
Hi Bob,

thank you for your answer.

The additional fields are stored in a separate table! So i only want to present the additional data in the User List in the backend and give the admins the possibility to edit this fields.

Gerhard
GreyHead 04 Sep, 2014
Hi Gerhard,

Then it should be no problem.

Add a DB Read to your form to load the data using the current User ID to identify the record. Keep the record Primary Key in a hidden input - just give it the same name - and a DB Save in the On Submit event will update the record.

Bob
cachito 04 Sep, 2014
Hi Bob,

thank you for your reply. My problem is, that i don't know what i have to do to replace the orginal joomla forms with the chronoforms.

Another hint for me? 😉

Thanks
Gerhard
GreyHead 04 Sep, 2014
Answer
1 Likes
Hi cachito,

There are two ways that might work. The first is a template override - and set the override to redirect to your new form

The second is to use the Joomla! Redirect component to catch the old from URL and redirect to the new one.

Bob
cachito 08 Sep, 2014
Sorry, i'm again :?

I made the template override an redirect to the form this way:

$mainframe =& JFactory::getApplication();
$mainframe->redirect('index.php?option=com_chronoforms&chronoform=Registration');

I expected to see my form with the name "Registration", but i'm redirected to the Chronoforms Component Page, where i can edit my forms.

Any hint what might be the problem with the redirect in the backend?

Thank you
Gerhard
GreyHead 09 Sep, 2014
Hi Gerhard,

Try making that an Absolute URL - using relative URLs in Joomla! can get you unexpected results
$mainframe->redirect(JUri::root().'index.php?option=com_chronoforms&chronoform=Registration');

Bob
cachito 14 Sep, 2014
Hi Bob,

unfortunately your solution produces the same result: in spite of my form i get the main site of the chronoforms component.

Has anyone used a chronoforms-form in the backend?

Greetings
Gerhard
GreyHead 14 Sep, 2014
Hi Gerhard,

Sorry, I'm out of suggestions for the moment. Maybe you can't override the back-end forms :-(

Could you make a limited access front-end form to do what you need?

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