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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Web API on modular bas...
Power Pages
Answered

Web API on modular basic form

(0) ShareShare
ReportReport
Posted on by 93

Hi there,

 

I have a basic form which opens in a modular or dialog style from a create new button on a list.

 

I am trying to use the Web API but despite it working on other parts of the site, the console error states that it is not defined.

 

I don't get this error when the API is called on the Web page which holds the list (whether on web page or list JS) - but as the field is on the basic form this is no use. 

 

Is this a known issue whereby the modular form isn't pulling through code defined elsewhere or am I missing something?

 

I know the workaround would be to have the form on a standalone web page, but as it's small the modular/dialog style works well.

 

 

Categories:
I have the same question (0)
  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Where are you placing your pieces of code?

    If part of it is in the Web Page, page Javascrupt, or Web Template then you would need to access it via parent objects of the Basic Form - (if you use the Portal Management App you can put all your JS against the Basic Form in its definition).

  • RK2021 Profile Picture
    93 on at

    Thanks @Fubar - I thought so. Does this mean when a basic form is not within a web page (but instead loads in dialog style, such as when via a create new record button) that there is no link to the Web template or web page code? 

  • Verified answer
    Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    If you are loading it as an Entity/Basic Form rather than Web Page then think of it like an iFrame embedded on the Page.  You can still access stuff from the Web Page/Template but it is a couple of 'parent' levels higher.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 71

#2
DP_Prabh Profile Picture

DP_Prabh 36

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 32 Most Valuable Professional

Last 30 days Overall leaderboard