 |

IronVictory
User
Jun 11, 2008, 12:25 PM
Post #1 of 5
(416 views)
Shortcut
|
|
list editor shows num value from pulldown
|
Can't Post
|
|
I am using a pulldown list field which pulls data from a table in my database. I have set the option values field to 'num' and the option labels field to 'name'. I have chosen this field to display on the list editor page, but it defaults to showing the 'num' value instead of the 'label' value. Is there a way to change this? thanks, Peter
|
|
|  |
 |

Dave
Staff
/ Moderator

Jun 11, 2008, 2:59 PM
Post #2 of 5
(410 views)
Shortcut
|
|
Re: [IronVictory] list editor shows num value from pulldown
[In reply to]
|
Can't Post
|
|
Hi Peter, You could try storing "name" for both name and label. Let me know if that would work for you. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

IronVictory
User
Jun 11, 2008, 3:28 PM
Post #3 of 5
(405 views)
Shortcut
|
|
Re: [Dave] list editor shows num value from pulldown
[In reply to]
|
Can't Post
|
|
Yeah that does work of course. But I want to pass the id of the category not the name.
|
|
|  |
 |

Dave
Staff
/ Moderator

Jun 11, 2008, 4:37 PM
Post #4 of 5
(393 views)
Shortcut
|
|
Re: [IronVictory] list editor shows num value from pulldown
[In reply to]
|
Can't Post
|
|
Ahh, ok I see what you mean. That's a bug not a feature. :) I've fixed that for the next version. If you're using the latest version (v1.17) backup and then replace the following file with the one attached: /lib/menus/default/list.php It will probably work with earlier versions as well. But backup first before testing. Let me know if that fixes it for you. Dave Edis - Senior Developer interactivetools.com
|
|
Attachments:
|
list.php
(10.3 KB)
|
|
|  |
 |

IronVictory
User
Jun 11, 2008, 5:21 PM
Post #5 of 5
(391 views)
Shortcut
|
|
Re: [Dave] list editor shows num value from pulldown
[In reply to]
|
Can't Post
|
|
Yep, that fixed it. Thanks.
|
|
|  |
|