Currently Im working in Dynamics 365 portals, And my objective is to set entity form name dynamically on some condition. but the problem is it always renders Form A even though the condition verifies. Here is the code:
{%if user.age > 18%}
<div class="container">{% entityform name:'Form A' %}</div>
{%else%}
<div class="container">{% entityform name:'Form B' %}</div>
{%endif%}
Please advice.