How to Get Drop Down Field Value in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2018 03:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2018 03:50 AM
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.
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2018 04:30 AM
Hey Raj,
You just need to concatenate those two feilds you want to populate in short description field using concatenation ('+') operator.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2018 10:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 04:11 AM
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.