Hi,
I'm having a problem when try to get the value for the drop down in dynamic link list.
Below is my code to get the value for drop down.
1
2#set ($fields = $record.getFields())
3#set ($body = $fields.get("body")) //here is the line I used to get value for dropdown
4
5 #if ($body.value == "value1")
6 ///do something
7 #end
Right now the if else statement is not working because the output for
$body.value is
["value1"] instead of just
"value1".
Is it correct the way I get the value for the dropdown? Kindly help me with this please.
Thank you.
Please sign in to flag this as inappropriate.