Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Adxstudio Portal: Toggle Entity Forms Based on Field Value in Portal

Posted on by Microsoft Employee

We received a requirement to toggle different forms in Adxstudio Portal when users select respective value in one of the field, example:-

Value 1 - Entity Form 1

Value 2 - Entity Form 2

Value 3 - Entity Form 3

Anyone have successfully tried JavaScript in toggling between the entity forms? 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Adxstudio Portal: Toggle Entity Forms Based on Field Value in Portal

    You can also use Web Form Steps to show different forms based on condition. First Step will be Select Type. Then COndition Steps and then Forms Step

  • Suggested answer
    Nick.Doelman Profile Picture
    Nick.Doelman 1,947 Most Valuable Professional on at
    RE: Adxstudio Portal: Toggle Entity Forms Based on Field Value in Portal

    I believe you can accomplish this with a combination of JavaScript and Liquid.

    Here is some liquid code I used recently to display different entity forms, in my case it was driven by a request parameter and not a user selection:

    You will first need to get a value for "X", perhaps from a button added to the HTML on your web page.

    {% if X == 1 %}

      {% entityform name: "EntityForm1" %}

    {% else %}

      {% entityform name: "EntityForm2" %}

    {% endif %}

    Depending on the value of X will drive which entity form is rendered.

    Hope that helps.

    Cheers

    Nick

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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