Hello All
Is it possible to use a variable inside a Dynamics 365 liquid tag? For example, I would like to set the entity form name using the following tag
{% entityform name: 'My Entity Form' %}
But for 'My Entity Form' I would like to use a variable. My code is as follows:
{% assign eForm = page.adx_entityform.name %}
{% assign mBudgetID = request.params['id'] %}
{% assign mBudget = entities.new_budget[mBudgetID] %}
{% if mBudget %}
{% assign mbState = mBudget.statuscode.label %}
{% if mbState == 'Submitted' %}
{% entityform name:'My Entity Form' %}
{% else %}
{% entityform name:{{ eForm }} %}
{% endif %}
{% endif %}
The resulting page displays the following error: Liquid error: Value cannot be null. Parameter name: input
Any assistance is greatly appreciated
Tom
*This post is locked for comments
I have the same question (0)