Hello everyone. I'm having an issue using web template as page template in a Dynamics 365 portal.
I am using:
- a web page that triggers a web form. this web page uses a custom page template 'A'
- page template 'A' redirects to a custom web template 'B'
- web template 'b',have the following structure:
<HTML>
<HEAD>...</HEAD>
<BODY>
Customer HTML container
{% block main %}
{% include 'Page Copy' %}
{% if page.adx_entitylist %}
{% include 'entity_list' key: page.adx_entitylist.id %}
{% endif %}
{% if page.adx_entityform %}
{% entityform id: page.adx_entityform.id %}
{% endif %}
{% if page.adx_webform %}
{% webform id: page.adx_webform.id %}
{% endif %}
{% endblock %}
The closing tags for customer HTML container
</BODY>
</HTML>
Now, problem is, when the web form is rendered, it puts in the code a lot of ASP code*, before the initial <HTML>from my web template, making this web page to run in quirks mode.
(*) looks like: <form method="post" action="/certificacion/" onsubmit="javascript:return WebForm_OnSubmit();" id="liquid_form"> and so on...
Is this the expected behavior? What am I doing wrong?
Thanks a lot for any answer! have a nice day ;-)