Multipage and empty fild

Please post information and questions about ChronoForms plugins here.

Multipage and empty fild

Postby pasqualedi » Mon Feb 08, 2010 10:20 pm

Hi!
I've a multipag form with 2 step.
In the 1st page i've added the button.
This button goes to the next step:
Code: Select all
<a href="index.php?option=com_chronocontact&chronoformname=Chiamata1&cfformstep=2">Trasforma in pratica</a>


But the problem is when i click on this button
the next step page is with empty "cognome" field.
In previous step i've write in field "cognome" e. Adams

Thanks at all
pasqualedi
Junior Boarder
 
Posts: 25
Joined: Mon Jan 11, 2010 4:19 pm

Re: Multipage and empty fild

Postby GreyHead » Mon Feb 08, 2010 10:32 pm

Hi pasqualedi,

Have you set the value of the second congnome field?
value='<?php echo $posted['congnome']; ?>'

Bob

Haven't we just been through this in another thread?
Bob Janes ChronoForms Support
*** The ChronoForms book is out NOW ***
ImageClick for more info
User avatar
GreyHead
Administrator
Administrator
 
Posts: 14756
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: Multipage and empty fild

Postby pasqualedi » Tue Feb 09, 2010 9:57 am

Hi Bob!
I've this value for second step in cognom field.
This value working when i follow the step 1 and after step 2.
But when i click the button "Trasforma in pratica" all field are empty.
pasqualedi
Junior Boarder
 
Posts: 25
Joined: Mon Jan 11, 2010 4:19 pm

Re: Multipage and empty fild

Postby GreyHead » Tue Feb 09, 2010 10:30 am

Hi pasqaledi,

Sorry, I've no idea where this is happening or what the "Trasforma in pratica" button is???

Bob
Bob Janes ChronoForms Support
*** The ChronoForms book is out NOW ***
ImageClick for more info
User avatar
GreyHead
Administrator
Administrator
 
Posts: 14756
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: Multipage and empty fild

Postby pasqualedi » Tue Feb 09, 2010 10:40 am

This is an image of edit recod page:
Image.

The 1st button "Salva e Continua" save the record.
When i edit this record i've the 2nd button "Trasforma in pratica",this is an image
with link:
Code: Select all
<a href="index.php?option=com_chronocontact&chronoformname=Chiamata1&cfformstep=2"><img src="images/stories/gestionale/botttrasforma.jpg" alt="" width="115" height="18" /></a>
pasqualedi
Junior Boarder
 
Posts: 25
Joined: Mon Jan 11, 2010 4:19 pm

Re: Multipage and empty fild

Postby GreyHead » Tue Feb 09, 2010 1:21 pm

Hi pasqualedi,

That's a good looking form !

As far as I know if you step backward all the form information is still available from the $posted array and the previous code shoudl work.

To test you can temporarily add this code at the beginning of the form HTML for each page to print out some debug code.
Code: Select all
<?php
if ( !$mainframe->isSite() ) { return; }
echo '<div>$posted: '.print_r($posted, true).'</div>';
?>

Bob
Bob Janes ChronoForms Support
*** The ChronoForms book is out NOW ***
ImageClick for more info
User avatar
GreyHead
Administrator
Administrator
 
Posts: 14756
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re: Multipage and empty fild

Postby pasqualedi » Tue Feb 09, 2010 2:15 pm

Hi Bob!thanks for your infinite patience!
Now i don't need of multipage form.
In this moment i have 2 form with 1 databse table.
1st "Registra Chiamata" and 2nd "trasforma in pratica"

I try with your code in 1st and 2nd form.Nothing...

I try to show my steps example:

1.write your name
Image

2.Save the form
Image

3.Click on the edit(Vedi) in chronoconnctivity table
Image

4.Open the record and click on the "Trasforma Pratica" (is 2nd form)
this is the link
Code: Select all
<a href="http://www.mysite.com/index.php?option=com_chronocontact&chronoformname=Pratica1&task=editrecord&mids={nome}&mmids={cognome}&cids={cf_id}"><img src="images/stories/gestionale/botttrasforma.jpg" alt="" width="115" height="18" />

Image

5.This is the result
Image

Ps. in second form for "nome" field i've this value:
Code: Select all
<?php echo $posted['nome']; ?>
pasqualedi
Junior Boarder
 
Posts: 25
Joined: Mon Jan 11, 2010 4:19 pm


Return to ChronoForms PlugIns

Who is online

Users browsing this forum: Google [Bot] and 0 guests

 

Who is online

In total there is 1 user online :: 1 registered, 0 hidden and 0 guests (based on users active over the past 15 minutes)
Most users ever online was 109 on Mon Jul 05, 2010 6:59 pm

Users browsing this forum: Google [Bot] and 0 guests

Current time

It is currently Fri Sep 10, 2010 12:43 pm