Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Answered

Web API on modular basic form

(0) ShareShare
ReportReport
Posted on by 87

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:
  • Verified answer
    Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: Web API on modular basic form

    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.

  • RK2021 Profile Picture
    87 on at
    Re: Web API on modular basic form

    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? 

  • Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: Web API on modular basic form

    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).

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics