Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Answered

Custom page is blank

Posted on by 95

As a test, I created a simple custom page with only one text field and some static text.  When I preview the page, I can see the text.  However, when I launch the custom page from the app as a modal dialog, I only see the title of the modal.

Here is the code:

let pageInput = {
            pageType: "custom",
            name: "effectivedate_12f18"
        };
        
        let navigationOptions = {
            target: 2,
            position: 1,
            width: {value: 50, unit:"%"},
            title: "Effective Date Change"
        };

        Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
            function success() {
                //test
            },
            function error() {
            }
        );  

This is what I see from the preview:

effectivedatebefore.png

This is what I see from the app:

effectivedateafter.png

  • Suggested answer
    MZ_980 Profile Picture
    MZ_980 95 on at
    RE: Custom page is blank

    Thanks for responding.  I tried everything from all the responses, yet no changes.  However, after a couple of days, I was able to launch my custom page.  Weird.

  • Suggested answer
    MZ_980 Profile Picture
    MZ_980 95 on at
    RE: Custom page is blank

    Thanks for responding.  I tried everything from all the responses, yet no changes.  However, after a couple of days, I was able to launch my custom page.  Weird.

  • Suggested answer
    MZ_980 Profile Picture
    MZ_980 95 on at
    RE: Custom page is blank

    Thanks for responding.  I tried everything from all the responses, yet no changes.  However, after a couple of days, I was able to launch my custom page.  Weird.

  • Verified answer
    Abby Kong Profile Picture
    Abby Kong 2 on at
    RE: Custom page is blank

    Hi MZ 980,

    Can you check below three things:

    1.  Custom Page Schema name is correct

    effectivedate_12f18, this name doesnt have prefix, this doesn't look right. Can you double check, it should be the have some thing like new_ or other in front

    2. Changes on the custom page is published.

    Preview is the saved version and what shows in Model-driven App is the live version. You can also find out which one is the current live version through version history.

    3. In Model Driven App, if there is message about new version of the app available is shown, please refresh the page (better with CTRL+F5 :)).

    Regards,

    Abby

  • Verified answer
    Eiken Profile Picture
    Eiken on at
    RE: Custom page is blank

    Hi,

    I encountered the same situation as you during my testing.

    Try to clear your browser cache and refresh the app editor browser, you can add the page into the app for testing, like I did.

     pastedimage1679282884957v2.png

    By the way, don't forget to click publish in custom page and make sure the name of page is correct.

    pastedimage1679283000634v3.png

    Then open the app and refresh the  try again.

    pastedimage1679283057536v4.png

  • Verified answer
    DAnny3211 Profile Picture
    DAnny3211 9,186 Super User on at
    RE: Custom page is blank

    hi

    It seems like there might be an issue with the code you provided. Without more information or the full code, it's difficult to determine the exact problem. However, here are some potential issues that could be causing the behavior you described:

    Check that the control you are using to display the text is set to visible. It's possible that the control is there, but it's not visible due to a property being set to false.

    Double-check that the page is being called correctly when launching the modal dialog. Make sure the correct page ID is being passed as a parameter and that the code is correctly referencing the page.

    Check that the modal dialog is not set to a fixed width and height that is too small to display the text field. You can adjust the width and height properties of the modal dialog to ensure it can properly display the content.

    Review the code for any potential syntax errors or logical errors. It's possible that there is an error in the code that is causing the issue.

    If none of these solutions work, please provide more information and the full code so we can further investigate the issue.

    DAniele

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,768 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,985 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans