Welcome Guest, Not a member yet? Register   Sign In
Freakauth.. Saving data during page submit..
#1

[eluser]mgandha[/eluser]
Hi,
I am using Freakauth and trying to reload my pages with additional rows of the same fields based on parameter in URL

/accounting/addtrans/5 -- will return 5 rows in the view

The behaviour im looking for is actually on a row increment where i recall the page again with /accounting/addtrans/6 ,
I want the fields to not be refreshed, just like fields after validation. I was actually expecting this behaviur to just work as both submission and increment calls the controller in the same way. (as in the form action is /accounting/addtrans/## as well)

View (it is using the fal_validation->[fieldname] to save the fields):
[code]<td>
&lt;?=form_input(array('name'=>'voucher_no'.$counter,

'id'=>'voucher_no',

'maxlength'=>'20',

'size'=>'10',

'value'=>(isset($this->fal_validation) ? $this->fal_validation->{'voucher_no'.$counter} : '')))?&gt;
&lt;?=(isset($this->fal_validation) ? $this->fal_validation->{'voucher_no'.$counter.'_error'} : '')?&gt;
</td>
<td>
&lt;?=form_dropdown('trans_type'.$counter,

$trans_type,

(isse
#2

[eluser]Grahack[/eluser]
Sorry, I tried to re-read but I really don't see what you want to do. Maybe that's because I'm French and I'm not fluent in English. Could you try to tell your story another way?




Theme © iAndrew 2016 - Forum software by © MyBB