Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Filtered display options menu

Vote:
 

I've tried to implement the following on EpiServer 9, but get a javascript exception "cannot get 'id' of null" meaning one or all four places where this reference is in the javascript is incorrect.

Anyone have another solution for this?

http://geta.no/blogg/filtered-display-option-menu-based-on-content-type-in-episerver/

#146515
Mar 17, 2016 8:43
Vote:
 

Solved part of the problem, module.config needed to be included in the nuget-package.

The new javascript exception "The store was queried with a [string] but the entity id is a [undefined]".

#146520
Mar 17, 2016 9:46
Vote:
 

Hi,

To get rid of the javascript exception you can replace your DisplayOptionSelector.js with the one found in this gist. I have done some modifications in the _setSupportedDisplayOptions method:

https://gist.github.com/MattisOlsson/bd9bec59c569de3d930f

#146736
Mar 22, 2016 11:58
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.