STORE IN DB

Kernel 22 Jan, 2013
HI, I had create a table with this fields:

id (primary key)
code
description
master code
kind (default = M)
date

this table is linked with 2 form.

the first form have this field:
code
description
date

onSubmit events I had set the table and everythings work fine.

In the second form I had this fields:
code
description
master code
date

I would like store data in db with kind = C but i don't like show any field on form.
How can I do?
Tanks
GreyHead 22 Jan, 2013
Hi Kernel,


You can use a Hidden input element if you don't want the input to show in the form; or you can set the value after the form is submitted using a Custom Code action before the DB Save action with code like this in it:
<?php
$form->data['kind'] = 'C';
?>

Bob
Kernel 22 Jan, 2013
ok, I had add an hidden field
tank you
This topic is locked and no more replies can be posted.