sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFX ApplicationCustomizer not executed on default NewForm.aspx

Open VitaliyZadorozhnyy opened this issue 8 years ago • 11 comments

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

VitaliyZadorozhnyy avatar Sep 12 '18 10:09 VitaliyZadorozhnyy

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 [email protected] пише:

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

VitaliyZadorozhnyy avatar Sep 18 '18 08:09 VitaliyZadorozhnyy

We have identified the issue and working on a fix.

ahackettms avatar Sep 18 '18 15:09 ahackettms

@ahackettms any updates on this issue ?

VitaliyZadorozhnyy avatar Nov 14 '18 08:11 VitaliyZadorozhnyy

@ahackettms Hi, any news?

tlozynskyy avatar Jan 03 '19 10:01 tlozynskyy

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

LeemansBE avatar Jan 28 '19 15:01 LeemansBE

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

spmattw avatar May 25 '19 10:05 spmattw

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.

menu4web avatar Jan 07 '20 15:01 menu4web

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

menu4web avatar Jan 10 '20 16:01 menu4web

@VitaliyZadorozhnyy Can you verify if this issue still occurs?

kemesfun avatar Jan 31 '20 01:01 kemesfun

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

2020-01-31_14-51-02

All form customization work as expected.

menu4web avatar Jan 31 '20 20:01 menu4web

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

msft-github-bot avatar Feb 08 '20 00:02 msft-github-bot