Hello, have to admit that I am struggling for a long time with DB save actions for Multi page form.. so I need professional help to take a look at my form:
1. I created a form with 5 pages;
2. Each page has cf_id hidden field to pass the record ID throughout the form;
3. On the first page (On load event after HTML (render form)) I have custom code with following code:
<?php $form->data['atskaite']['cf_id'] ?> - to get the cf_id
and
<?php $form->data['cf_id'] = $form->data['atskaite']['cf_id'];?> - to assign that to the hidden field
4. On the folloving pages (page 2 event .... etc) i have DB save with the custom code that follows containing
<?php $form->data['cf_id'] = $form->data['atskaite']['cf_id'];?>
Unfortunately, debugger shows that by changing pages the cf_id changes incrementaly😟 following by new record saved.
What did I miss here?
On Page 4 I have multiplier with the separate table.
After action DB save I have custom code added :
<?php $form->data['tiesnesi']['cfk_id'] = $form->data['atskaite']['cf_id']; ?> where I try to assign first table cf_id to second table id.
This does not save nothing😟
I have read all the posts in this forums but still did not get it working so I probably need some paid help with this.
1. I created a form with 5 pages;
2. Each page has cf_id hidden field to pass the record ID throughout the form;
3. On the first page (On load event after HTML (render form)) I have custom code with following code:
<?php $form->data['atskaite']['cf_id'] ?> - to get the cf_id
and
<?php $form->data['cf_id'] = $form->data['atskaite']['cf_id'];?> - to assign that to the hidden field
4. On the folloving pages (page 2 event .... etc) i have DB save with the custom code that follows containing
<?php $form->data['cf_id'] = $form->data['atskaite']['cf_id'];?>
Unfortunately, debugger shows that by changing pages the cf_id changes incrementaly😟 following by new record saved.
What did I miss here?
On Page 4 I have multiplier with the separate table.
After action DB save I have custom code added :
<?php $form->data['tiesnesi']['cfk_id'] = $form->data['atskaite']['cf_id']; ?> where I try to assign first table cf_id to second table id.
This does not save nothing😟
I have read all the posts in this forums but still did not get it working so I probably need some paid help with this.