Discussion:
PickList Selectedvalue
(too old to reply)
Joe ALVES
2010-02-18 13:00:03 UTC
Permalink
Hello All !

i've a picklist in a form,

i would like to retrive the "text" selected value, not the id (1st column)
how can i do

this : crmForm.all.new_type.Selectedtext : doen't work
this : crmForm.all.new_type.Value : returns the ID
this : document.getElementById('new_type').value : returns the ID

Could anyone help me ?

Thanks a lot

regards.

Joe
Martin Brunner
2010-02-18 13:14:02 UTC
Permalink
Hi Joe,

AFAIK, picklist works with:
- crmForm.all.new_type.DataValue

if you have got a lookup ist would be:
- crmForm.all.new_type.DataValue[0].name

just my 2 cents, Martin
Post by Joe ALVES
Hello All !
i've a picklist in a form,
i would like to retrive the "text" selected value, not the id (1st column)
how can i do
this : crmForm.all.new_type.Selectedtext : doen't work
this : crmForm.all.new_type.Value : returns the ID
this : document.getElementById('new_type').value : returns the ID
Could anyone help me ?
Thanks a lot
regards.
Joe
huib aarts (crm.atechnisch.nl)
2010-02-19 13:34:49 UTC
Permalink
Dear Joe,

SelectedText is with a capital T. this should work.
example:
http://crm.atechnisch.nl/2008/01/pick-list-value-vs-label/


kind regards

Huib
crm.atechnisch.nl
Joe ALVES
2010-03-04 13:04:11 UTC
Permalink
lol ! thanks !!!!
Post by huib aarts (crm.atechnisch.nl)
Dear Joe,
SelectedText is with a capital T. this should work.
http://crm.atechnisch.nl/2008/01/pick-list-value-vs-label/
kind regards
Huib
crm.atechnisch.nl
Loading...