Custom Element Not Appearing on Form

Vote:
 

Hey Everyone,

I am making a custom dropdown following this example (https://niteco.com/blogs/how-to-extend-episerver-form/#disqus_thread)

The admin section seems to be working, but I cannot get the item (the View) to appear on the form.  I am not getting any errors, but I also cannot step through the Razor code. I cannot figure out what I am missing.

This is where the cshtml is stored.

formElementViewsFolder="~/Views/Shared/ElementBlocks"

Does anyone have ideas on how to troubleshoot this and get it working?

#203394
Apr 22, 2019 16:20
Vote:
 

Just for troubleshooting purposes are you able to make changes to one of the out of the box Form Element views (you will need a copy of those stored in the same location) and have that show up when you view the page?

#203396
Apr 22, 2019 16:29
Vote:
 

Thanks @KennyG (I don't think the @ thing works...)

Sorry for the slow response, this thing has taken me down a rabbit hole, but yeah, that helped.  I had an error with the Model.GetItems() returning the right stuff and then I think the View has to be named the same as the block.  This last bit was not obvious to me.   I am sure it is written down somewhere.

Alright...   nothing to see here.  Thanks for chiming in!

#203470
Apr 24, 2019 15:12
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.