2

I have created a new block which contains a table allowing people to enter fields they want to appear in the view. They select the type while they do this and one of the types in 'DropDown'. While entering what fields they would like they also have the option to add select options. I only want the select options part to appear when they have select the type 'DropDown'. The documentation around this on the Episerver site is not great and only mentions how to edit out the box blocks not custom built ones.

enter image description here

So when field type is anything other than 'DropDown' I do not want the 'Select Options' part to appear. Is this possible?

Thanks

James Blackburn
  • 594
  • 4
  • 23
  • I think you will need to add some scripts to your block to hide/show elements based on your needs. – duc mai Jan 11 '19 at 12:00
  • Anymore information? – James Blackburn Jan 11 '19 at 12:01
  • 1
    You're going to have to create a custom editor (Dojo widget) to accomplish that in the Episerver UI. – Ted Nyberg Jan 11 '19 at 12:40
  • 1
    @JamesBlackburn I guess Ted Nyberg has pointed out the process. otherwise maybe here is valid https://world.episerver.com/documentation/developer-guides/CMS/editing/Creating-an-editor-widget/. I am kind of obsolete with Episerver new versions. The last time I used was version 6 and there we used custom properties to custom ui of editorial properties – duc mai Jan 11 '19 at 13:22
  • 1
    Thanks guys looks like that its the solution. Cannot believe how overly complicated they have made it. What it does is simple at the end of the day! Surely Epi can figure out a much easier and better way to do this! Not going to implement it now just going to tell the content guys only to use it when adding drop downs – James Blackburn Jan 11 '19 at 13:51

0 Answers0