Sp-dev-docs: SPFX ApplicationCustomizer not executed on default NewForm.aspx

Created on 12 Sep 2018  Â·  11Comments  Â·  Source: SharePoint/sp-dev-docs

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

An Alert from ApplicationCustomizer sample has to be shown or custom debugger fired when dev tools are opened on default modern NewForm.aspx.

Observed Behavior

No alert and debugger on default modern NewForm.aspx, even no ApplicationCustomizer scripts loaded when opened network tab in chrome browser dev tools as well in debug mode no prompt to enable debug scripts, however on default modern EditForm.aspx, DispForm.aspx alert is shown and debugger fired, from dev tools scripts are loaded as well as on home page and custom site pages everything works.

Steps to Reproduce

Deploy ApplicationCustomizer sample with following onInit method:

  @override
  public onInit(): Promise<void> {
    Log.info(LOG_SOURCE, `Initialized ${strings.Title}`);
    debugger;
    let message: string = this.properties.testMessage;
    if (!message) {
      message = '(No properties were provided.)';
    }

    Dialog.alert(`Hello from ${strings.Title}:\n\n${message}`);

    return Promise.resolve();
  }

And try to install it through app catalog or run using gulp serve on SharePoint online web site then visit on custom list default modern NewForm.aspx

Submission Guidelines

Looks like something special happens only on NewForm.aspx, I have tried as well on different site templates and got the same behavior, Please let me know how can I inject script to default modern NewForm.aspx on custom list or if it is a bug then approximately when it will be fixed and rolled out ?

Thanks

spfx-extensions spfx-general bug-suspected

Most helpful comment

We have identified the issue and working on a fix.

All 11 comments

Hi Amy Hackett,
You can navigate to newform.aspx from modern list webpart on a site page,
so to navigate from SharePoint:

  1. create new modern Site Page
  2. add List webpart
  3. Press on + to add item
  4. you are navigated to newform.aspx

Best regards Vitaliy

вт, 18 вер. 2018 о 01:40 Amy Hackett notifications@github.com пише:

Hello @VitaliyZadorozhnyy https://github.com/VitaliyZadorozhnyy , could
you clarify how to get to the NewForm.aspx, EditForm.aspx and DispForm.aspx?

Thanks

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SharePoint/sp-dev-docs/issues/2523#issuecomment-422195070,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APMJ0FKL-mqohZErPjpMSlR7UfgEwzuEks5ucCTHgaJpZM4WlDWv
.

--
Vitaliy Zadorozhniy

We have identified the issue and working on a fix.

@ahackettms any updates on this issue ?

@ahackettms Hi, any news?

We are experiencing the same issue. Any update @ahackettms ?

@ahackettms How is the progress here? We need to get this fixed as this is an essential part of our product and we reported it already 8mt ago. Could you please check if there is a workaround or a possibility to fix it?
Thanks a lot.

I experience the same problem.

DispForm.aspx and EditForm.aspx work fine. But the same app extension does not get loaded on NewForm.aspx at all.

Interesting that before it was working fine on NewForm.aspx as well.

NewForm.aspx is now working. But it was broken for 3 days.

@VitaliyZadorozhnyy Can you verify if this issue still occurs?

App extension on new NewForm.aspx is working for me.

2020-01-31_14-51-02

All form customization work as expected.

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonthenerd picture jonthenerd  Â·  3Comments

nanddeepn picture nanddeepn  Â·  3Comments

ken-harris picture ken-harris  Â·  3Comments

jonthenerd picture jonthenerd  Â·  3Comments

StfBauer picture StfBauer  Â·  3Comments