How to use multiple select field from webcontent structures in templatesHow to use multiple select field from webcontent structures in templateshttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1200652542024-03-29T10:07:36Z2024-03-29T10:07:36ZRE: How to use multiple select field from webcontent structures in templateHisham Khartoumhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1200753722020-10-09T16:45:33Z2020-10-09T16:45:33ZYou need to use list before calling the value I believe.<br />Hisham Khartoum2020-10-09T16:45:33ZHow to use multiple select field from webcontent structures in templatesVero Starkhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1200652532020-10-08T10:53:37Z2020-10-08T10:53:37Z<html><head></head><body>Hello Liferay-Community,can you help me?In Webcontent Structures I create a multiple select named favoriteCars.favoriteCars: Porsche, Mercedes, BMW, Audi, VW<br>After that I create a Template and I use the Structure with the field favoriteCars.<br><h1>I drive {favoriteCars.getData()}</h1>I expect this to be displayed: I drive Porsche, BMW, VWBut it shows only: I driveWhy? <br>And if I use ${favoritCars.getOptions()}, I get an Exception:<br>An error occurred while processing the template.<pre><code>The following has evaluated to null or missing:
==&gt; favoriteCars [in template "20101#20128#33839" at line 1, column 30]
----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use &lt;#if myOptionalVar??&gt;when-present&lt;#else&gt;when-missing<!--#if-->. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${favoriteCars.getOptions()} [in template "20101#20128#33839" at line 1, column 28]</code></pre><br>I would like use a for-loop, but how I can do that in .ftl?Please can you explain m