Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Two entity Forms of same entity in one web template

Posted on by 725

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

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Two entity Forms of same entity in one web template

    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

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Two entity Forms of same entity in one web template

    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 ?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans