hi everyone!
i'm trying to use chronoforms to create a health history for students in my university and i have 1 question...
every student has a personal identification number (called NUA)
i want this:
when nurses are registering for the first time a student, they have to enter all data in the form...
but, to save work of nurses in the second visit of the same student, I wish that they only needed to enter the id (NUA) and some fields were filled with data from previous record automatically
How can I do that?
What do I need?
i'm trying to use chronoforms to create a health history for students in my university and i have 1 question...
every student has a personal identification number (called NUA)
i want this:
when nurses are registering for the first time a student, they have to enter all data in the form...
but, to save work of nurses in the second visit of the same student, I wish that they only needed to enter the id (NUA) and some fields were filled with data from previous record automatically
How can I do that?
What do I need?
Hi iAlex,
Not too difficult, you can save the record including the NUA and then have a form with an NUA field that will look up the record and populate a form with it. The Profile Page plug-in is designed to help with this kind of form.
Bob
Not too difficult, you can save the record including the NUA and then have a form with an NUA field that will look up the record and populate a form with it. The Profile Page plug-in is designed to help with this kind of form.
Bob
Hi iAlex,
There some documentation in the plug-in help tab; many posts here and a partial write up in the ChronoConnectivity Tutorial here which uses the Profile Plug-in to display saved form results. It's written in the context of ChronoConnectivity but the Profile Plug-in parts should be useful.
Bob
PS This is also an example in Chapter 11 of The ChronoForms Book
There some documentation in the plug-in help tab; many posts here and a partial write up in the ChronoConnectivity Tutorial here which uses the Profile Plug-in to display saved form results. It's written in the context of ChronoConnectivity but the Profile Plug-in parts should be useful.
Bob
PS This is also an example in Chapter 11 of The ChronoForms Book
hi everyone!!
so, i need to create a form asking for NUA, then when submit redirect to the second form with the NUA in the URL and use php code in the second form to get data from the DB using the url's nua??
i'm sorry but i'm a newbie....
i don't know how to redirect automatically with info of the form... i tried URL REDIRECT with this:
http://domain.com/index.php?option=com_chronocontact&chronoformname=registroNombres&nua={nua}
but the final URL doesn't change {nua} with the previous number entered... it stills {nua} in the url....
thanks for your time
so, i need to create a form asking for NUA, then when submit redirect to the second form with the NUA in the URL and use php code in the second form to get data from the DB using the url's nua??
i'm sorry but i'm a newbie....
i don't know how to redirect automatically with info of the form... i tried URL REDIRECT with this:
http://domain.com/index.php?option=com_chronocontact&chronoformname=registroNombres&nua={nua}
but the final URL doesn't change {nua} with the previous number entered... it stills {nua} in the url....
thanks for your time
Hi iAlex,
In the OnSubmit After Box of your form add
Bob
In the OnSubmit After Box of your form add
<?php
$nua = & JRequest::getInt('nua', 0 , 'post');
if ( $nua ) {
$url = 'index.php?option=com_chronocontact&chronoformname=registroNombres&nua='.$nua;
$MyForm->formrow->redirecturl = $url;
}
?>
Bob
This topic is locked and no more replies can be posted.