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)

Consuming Liquid Code from Web Page in Entity Form

(1) ShareShare
ReportReport
Posted on by 652

Hi,

I have Liquid code on Web Page A, which queries data and stores them into variables.

Web Page A houses Entity Form A.

Is it possible to consume the Liquid code variables of Web Page A in the custom JavaScript section of Entity Form A?

If so, what is the pattern/approach?

Cheers

*This post is locked for comments

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

    I haven't tried that exact scenario.. but it should work as it would be rendered in the same page.. make sure you are adding the liquid in the Content Web Page and not the Root one

    try the following syntax to retrieve the Liquid variable:

    var variableName = '{{ liquidVariableName }}';

  • Tino Rabe Profile Picture
    652 on at

    I've tried exactly that and it breaks the embedded Entity Form all together, e.g. lookup fields no longer work on the Entity Form.

    So currently I am wondering if there is a dedicated pattern to access the Liquid variables from the Web Page in the embedded Entity Form.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    When you say breaks the entity form, do you get any error? I have recently var userId = '{{ user.Id }}'; to get the logged in user id in entity form and it worked as expected.

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