web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Two entity Forms of same entity in one web template

(0) ShareShare
ReportReport
Posted on by 727

Hello Guys

Is there any restriction to use two different entity forms of same entity in same web template ? because while i was keeping two forms in two different tabs in same web template second entity form last field Css is completely disturbing and also footer are also i am unable to see did anyone faced this kind of issue, please help us if any

Thanks 

James 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    Emmanuel

    there is no restriction

    are you using the standard {% entityform id: page.adx_entityform.id %} to render the Form ?

    not sure if I understood the issue you had, but have you tried leaving only one Entity Form at each time using the same Web Template.. to make sure both are ok using that Web Template ?

  • Suggested answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Hi Emmaneul,

    If I understood your requirement correctly, you are using two Entity Forms in single Web Template and want to keep the logic of both the form intact with each other.

    Try to keep both the Entity Forms code/script/css seperate by putting any condition inside web termplate.

    For Example, I am putting one pshedu code, hope you understand.

    // Get Webpage Name
    var getPageTitle = '{{ page.adx_copy }}';

    if (getPageTitle == 'ABC')
    {
    {% include 'Entity Form 1' %}
    // Write your custom code/html/css related to Entity Form 1 here. so that it will only work if page ABC gets loaded not for page PQR
    }

    else if (getPageTitle == 'PQR')
    {
    {% include 'Entity Form 2' %}
    // Write your custom code/html/css related to Entity Form 2 here. so that it will only work if page PQR gets loaded not for page ABC
    }


    So by adding this logic, your both Entity Form code will work indenpendently without impacting the code of each other.


    There might be few mistake in syntax as i have put the pshedu code. Use it as per your need,


    Mark it verfied, If you are able to resolve your issue.


    Cheers
    Arpit
    arpitmscrmhunt.blogspot.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans