How to Get Drop Down Field Value in Portal

Ram141
Tera Expert

Hi Team,

I Have a Requirement to populate   two drop down field values to Short Description Field, can anyone Suggest me how to get values of drop down list widgets.

Thanks,

Raj

4 REPLIES 4

Gaurav Bajaj
Kilo Sage

Hi Raj,



You just need to bind the value of drop-down fields to a variable in scope and then concatenate them to display in short description field.



I have bounded the two drop-down fields to field1 and field2 and then evaluated them in the expression below.



You might want to have a look at the angular JS documentation for such tasks.



find_real_file.png



Thanks


Gaurav


saurav1
Kilo Expert

Hey Raj,


You just need to concatenate those two feilds you want to populate in short description field using concatenation ('+') operator.


Ram141
Tera Expert

Hi All,



After Concatenating the two fields it was showing the short decsription value as sys_id how can we get the sys_id related value.



Thanks,


Raj


saurav1
Kilo Expert

raj shekar wrote:



Hi Team,



I Have a Requirement to populate two drop down field values to Short Description Field, can anyone Suggest me how to get values of drop down list widgets.



Thanks,


Raj


Hello Raj,


If you are concatenating any reference filed please dotwalk to get the name


e.g.request.requested_for using the dot operator and you wont get sys_id any more.




Please hit helpful   if   the solution helps you.