| Index
» Projects
» phpMyEdit
» Forum
» Fields dependency while editing |
 |
hsicard
Joined: 22 Oct 2003
Posts: 17
Posted: 2006-12-20 13:25
Back to top
Reply with quote
|
I wonder if someone found a way to implement a dependency between fields while editing.
Here is a simple example to explain the type of functionality I would like to implement (I have much more complex and real needs, but it's just to give an idea of what I mean by fields dependency) :
- type of client: firm / individual
- name of the firm:
- name of the contact:
If the field "type of client" is set to "individual", then I want the field "name of the firm" to be deactivated.
Or if a user starts filling something in "name of the firm", then "type of client" would be automatically set to "firm".
Of course I could use triggers to ensure the coherency of information filled in, but I would prefer having a more direct dependency using probably a piece of javascript.
Any experience on that?
Thanks,
Hugues
(extremely satisfied with phpMyEdit and its evolutions since 2001...)
|
|
Post new topic
Reply to topic
|
|
|
|