MSOZoneCell_WebPart WPQ ID is keep changing

%3CLINGO-SUB%20id%3D%22lingo-sub-909145%22%20slang%3D%22en-US%22%3EMSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-909145%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20JavaScript%20to%20submit%20the%20form.%20In%20new%20and%20edit%20forms%20I%20have%20content%20editor%20web%20part%20that%20is%20calling%20default%20web%20part%20zone%20id%20to%20submit%20an%20item%20to%20the%20list.%20but%20this%20WPQ%20id%20is%20changing%20everyday.%20It%20was%20not%20changing%20in%20the%20past%20but%20from%20this%20week%20this%20id%20is%20changing%20to%203%2C4%2C5..%20everyday%2C%20even%20im%20not%20changing%20anything.%3C%2FP%3E%3CP%3Eif%20(SPClientForms.ClientFormManager.SubmitClientForm('WPQ6'))%20return%20false%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestion%20to%20get%20the%20web%20part%20zone%20id%20to%20pass%20here%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E-Sal%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-909145%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-911677%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-911677%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Sal%2C%3C%2FP%3E%3CP%3EI%20have%20exactly%20the%20same%20problem.%20It%20changed%20twice%20until%20now%20in%20the%20last%203-4%20months.%20I%20have%20CSS%20and%20JavaScript%20using%20the%20WPQX%20IDs%20and%20over%20night%20the%20IDs%20changed%20without%20any%20action%20from%20my%20side.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20this%20is%20a%20bug%20...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPatrick%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-912387%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-912387%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F406064%22%20target%3D%22_blank%22%3E%40Sal_Sal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20having%20the%20very%20same%20issue.%20My%20case%20is%20somewhat%20similar%20to%20yours%2C%20where%20I%20have%20been%20using%20JavaScript%2C%20but%20I'm%20using%20it%20to%20toggle%20some%20form%20inputs%20to%20show%2Fhide%20depending%20on%20a%20selection%20of%20a%20drop%20down.%20The%20id%20attribute%20of%20the%20web%20part%3CSPAN%3E%26nbsp%3Bitself%20keeps%20changing%20randomly%20on%20it's%20own%20timing%20in%20a%20way%20that%20I%20can't%20control%2C%20in%20turn%2C%20breaking%20my%20%3C%2FSPAN%3E%3CSPAN%3EJavaScript%20functions.%20Thing%20is%2C%20this%20particular%20web%20part%20is%20actively%20being%20used%20at%20the%20office%20and%20when%20this%20occurs%2C%20I%20always%20have%20to%20notify%20the%20entire%20team%20to%20stop%20using%20it%20until%20I%20fix%20it%2C%20which%20in%20turn%20affects%20business%20processes%20in%20the%20end%2C%20each%20time.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20been%20attempting%20to%20come%20up%20with%20another%20way%20to%20approach%20this%20issue%2C%20by%20attaching%20a%20custom%20id%20attribute%20to%20the%20DOM%20elements%20I%20want%20to%20target%2C%20but%20the%20changing%20of%20the%20original%20id%20is%20preventing%20me%20from%20doing%20so.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20in%20all%2C%20I%20would%20also%20like%20to%20know%20why%20this%20occurs%2C%20because%20it%20is%20severely%20affecting%20internal%20processes.%20I%20am%20in%20the%20process%20of%20developing%20this%20web%20part%20into%20a%20more%20robust%20web%20part%20using%20SPFx%20with%20React%2C%20however%20in%20the%20meantime%2C%20as%20quickly%20as%20I'm%20trying%20to%20learn%20SPFx%2C%20I%20would%20really%20need%20the%20classic%20web%20part%20to%20continue%20to%20work%20as%20it%20should.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20more%20light%20be%20shed%20on%20this%20issue%20please%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-912452%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-912452%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Yarrah%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECool%2C%20in%20the%20beginning%20I%20thought%20I%20was%20doing%20something%20wrong.%20Now%20it%20is%20more%20and%20more%20obvious%20there%20is%20some%20kind%20of%20undesired%20behaviour.%20I%20already%20got%20our%20IT%20issuing%20a%20ticket%20with%20Microsoft.%20Let's%20see%2C%20what's%20happening%20...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPatrick%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-912665%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-912665%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F93768%22%20target%3D%22_blank%22%3E%40Patrick%20Borgschulte%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20great!%20I%20would%20appreciate%20if%20you%20can%20relay%20the%20feedback%20to%20us%20here%20IF%20possible.%20In%20the%20meantime%2C%20I%20guess%20all%20I%20can%20really%20do%20with%20this%20issue%20is%20work%20around%20it%2C%20like%20I%20always%20have%20to%20do.%20I%20mean%2C%20I'd%20also%20expect%20someone%20in%20support%20to%20notice%20our%20comments%20then%20shed%20some%20light%20on%20this%20post%20here%20as%20well%2C%20so%20I'm%20hoping%20for%20the%20best...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-915291%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-915291%22%20slang%3D%22en-US%22%3E%3CP%3Ei%20am%20also%20facing%20the%20same%20issue%20.%20if%20anyone%20gives%20solution%20that%20will%20be%20great%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-918602%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-918602%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F421542%22%20target%3D%22_blank%22%3E%40Yarrah%3C%2FA%3E%26nbsp%3BWe%20are%20in%20contact%20with%20Microsoft%20at%20the%20moment.%20I%20keep%20you%20posted.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-918693%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-918693%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20so%20much%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F93768%22%20target%3D%22_blank%22%3E%40Patrick%20Borgschulte%3C%2FA%3E%26nbsp%3B!%20Looking%20forward%20to%20your%20feedback.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927509%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927509%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20having%20the%20same%20problem.%20Very%20frustrating.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1132783%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1132783%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F406064%22%20target%3D%22_blank%22%3E%40Sal_Sal%3C%2FA%3E%26nbsp%3BWe%20are%20having%20the%20same%20issue%20but%20it%20looks%20like%20it%20happens%20every%20time%20after%20Microsoft%20Security%20Patches%20are%20applied%20across%20the%20SharePoint%20Servers.%20So%20we%20are%20thinking%20of%20changing%20the%20script%20to%20get%20the%20handle%20of%20webpart%20in%20a%20different%20way%20than%20using%20the%20ID.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1132877%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1132877%22%20slang%3D%22en-US%22%3E%3CP%3EHey%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F406064%22%20target%3D%22_blank%22%3E%40Sal_Sal%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20chose%20to%20move%20away%20from%20everything%20classic%20at%20this%20point.%20But%20I%20know%20in%20some%20situations%2C%20there%20are%20those%20who%20cannot%20do%20this%2C%20so%20it%20must%20be%20very%20frustrating...%20I%20have%20developed%20web%20parts%20using%20SPFx%20and%20React.js%20to%20cater%20for%20my%20needs%20on%20the%20modern%20view.%20So%20far%2C%20this%20seem%20to%20have%20been%20the%20best%20approach%20for%20my%20scenario.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1719426%22%20slang%3D%22en-US%22%3ERe%3A%20MSOZoneCell_WebPart%20WPQ%20ID%20is%20keep%20changing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1719426%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F93768%22%20target%3D%22_blank%22%3E%40Patrick%20Borgschulte%3C%2FA%3E%26nbsp%3BDid%20you%20ever%20got%20feedback%20from%20MS%20on%20how%20to%20work%20around%20this%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi, 

I'm using JavaScript to submit the form. In new and edit forms I have content editor web part that is calling default web part zone id to submit an item to the list. but this WPQ id is changing everyday. It was not changing in the past but from this week this id is changing to 3,4,5.. everyday, even im not changing anything.

if (SPClientForms.ClientFormManager.SubmitClientForm('WPQ6')) return false;

 

Any suggestion to get the web part zone id to pass here?

 

Thanks,

-Sal

11 Replies

Hi Sal,

I have exactly the same problem. It changed twice until now in the last 3-4 months. I have CSS and JavaScript using the WPQX IDs and over night the IDs changed without any action from my side.

 

I think this is a bug ...

 

Patrick

Hey @Sal_Sal 

 

I've been having the very same issue. My case is somewhat similar to yours, where I have been using JavaScript, but I'm using it to toggle some form inputs to show/hide depending on a selection of a drop down. The id attribute of the web part itself keeps changing randomly on it's own timing in a way that I can't control, in turn, breaking my JavaScript functions. Thing is, this particular web part is actively being used at the office and when this occurs, I always have to notify the entire team to stop using it until I fix it, which in turn affects business processes in the end, each time.

 

I have been attempting to come up with another way to approach this issue, by attaching a custom id attribute to the DOM elements I want to target, but the changing of the original id is preventing me from doing so.

 

All in all, I would also like to know why this occurs, because it is severely affecting internal processes. I am in the process of developing this web part into a more robust web part using SPFx with React, however in the meantime, as quickly as I'm trying to learn SPFx, I would really need the classic web part to continue to work as it should.

 

Can more light be shed on this issue please?

 

Thank you.

Hello Yarrah,

 

Cool, in the beginning I thought I was doing something wrong. Now it is more and more obvious there is some kind of undesired behaviour. I already got our IT issuing a ticket with Microsoft. Let's see, what's happening ...

 

Patrick

Hey @Patrick Borgschulte,

 

That's great! I would appreciate if you can relay the feedback to us here IF possible. In the meantime, I guess all I can really do with this issue is work around it, like I always have to do. I mean, I'd also expect someone in support to notice our comments then shed some light on this post here as well, so I'm hoping for the best...

i am also facing the same issue . if anyone gives solution that will be great

@Yarrah We are in contact with Microsoft at the moment. I keep you posted.

Thank you so much @Patrick Borgschulte ! Looking forward to your feedback.

We are having the same problem. Very frustrating. 

@Sal_Sal We are having the same issue but it looks like it happens every time after Microsoft Security Patches are applied across the SharePoint Servers. So we are thinking of changing the script to get the handle of webpart in a different way than using the ID.

Hey @Sal_Sal ,

 

I chose to move away from everything classic at this point. But I know in some situations, there are those who cannot do this, so it must be very frustrating... I have developed web parts using SPFx and React.js to cater for my needs on the modern view. So far, this seem to have been the best approach for my scenario.

@Patrick Borgschulte Did you ever got feedback from MS on how to work around this issue?