| Index
» Projects
» phpMyEdit
» Forum
» Conditional Hide fields in View |
 |
ned@kelly.org.au
Joined: 08 Apr 2004
Posts: 22
Location: Mosquito Flat, Australia
Posted: 2004-04-16 06:10
Back to top
Reply with quote
|
Hi All
One final question
I would like to be able to select View for a particular record in the List view and have certains fields hidden in View depending on another field in the table.
ie:
| Code: |
if Status = '1'
hide fields 13,14,15 from View
elseif Status = '2'
hide fields 10,11,12 from View
etc..
|
Im sure this is possible, just dont were to start
Cheers
Ned
|
hbernard
Joined: 23 Mar 2003
Posts: 159
Location: FRANCE
Posted: 2004-04-16 07:56
Back to top
Reply with quote
|
| ned@kelly.org.au wrote: |
Hi All
One final question
I would like to be able to select View for a particular record in the List view and have certains fields hidden in View depending on another field in the table.
ie:
| Code: |
if Status = '1'
hide fields 13,14,15 from View
elseif Status = '2'
hide fields 10,11,12 from View
etc..
|
Im sure this is possible, just dont were to start
Cheers
Ned |
Well, you have to use 'pre' 'select' triggers and change $this->fdd['field13']['input']['H'] or something like that in the triggers.
But you will have to remake on hand the query to know what is 'status' value (currently, there is no predefined var in 'pre' triggers, except $this.
I'm not sure it will work, but it has to.
Please report here any solution you found. (or trouble to have it to work)
_________________ hbernard - phpMyEdit updater.
|
|
Post new topic
Reply to topic
|
|
|
|