fffonck
Joined: 02 Nov 2008
Posts: 9
Posted: 2008-12-01 14:17
Back to top
Reply with quote
|
Hello everybody
Is this possible to go on a Add mode page to insert a new row, but with a default value for a field.
Ex in a url I have :
| Code: |
| test.php?PME_sys_operation=Add |
I want that, in the test table, the field PME_sys_qf1 has a default value (ex : 8)
| Code: |
| test.php?PME_sys_operation=Add&PME_sys_qf1=8 |
doesn't work.
Have an idea ?
Thanks
|
fffonck
Joined: 02 Nov 2008
Posts: 9
Posted: 2008-12-01 15:10
Back to top
Reply with quote
|
It's ok, I did it.
My method :
I pass the value as a _GET value (link=8).
And I set the $opts['fdd']['field']['default'] = $_GET['link'];
;)
|
|
Post new topic
Reply to topic
|
|
|