Multiple drop-down linked together

Vote:
 

So I am using Selection factory to populate my dropdowns. 

Is it possible to populate a dropdown based on another dropdown?

Like Country -> Region example

#186053
Dec 11, 2017 11:50
Vote:
 

Just follow this

https://world.episerver.com/blogs/Duong-Nguyen/Dates/2014/1/Country-Region-drop-down-lists-in-All-properties-mode/

#186060
Dec 11, 2017 12:35
Vote:
 

Thanks Henrik, so I would have to use DOJO to acheive this. No other way around this, I guess?

#186061
Dec 11, 2017 12:38
Vote:
 

No, but that is quite simple dojo so it should not be any problem

#186062
Dec 11, 2017 12:40
Vote:
 

Thanks again,

I am getting quite a lot JS errors and the most important one is this

http://localhost:12345/EPiServer/Shell/10.12.2.0/ClientResources/alloy/editors/LocationBlockContainer.js

This is my code to modify meta data

    [EditorDescriptorRegistration(TargetType = typeof(LocationBlock))]
    public class LocationBlockEditorDescriptor : EditorDescriptor
    {
        public override void ModifyMetadata(EPiServer.Shell.ObjectEditing.ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
        {
            base.ModifyMetadata(metadata, attributes);
            metadata.Properties.Cast<ExtendedMetadata>().First().GroupSettings.ClientLayoutClass = "alloy/editors/LocationBlockContainer";
        }
    }
I have started my Empty Alloy project. Now sure where to put these JS files. Any comment on that one?

#186066
Dec 11, 2017 12:58
Vote:
 

An explanation of how to create multiple dropdowns with dojo:

https://andersnordby.wordpress.com/2014/10/24/creating-a-custom-property-with-a-dojo-widget/

#187080
Jan 11, 2018 13:53
Vote:
 

An explanation of how to create multiple dropdowns with dojo:

https://andersnordby.wordpress.com/2014/10/24/creating-a-custom-property-with-a-dojo-widget/

#187081
Jan 11, 2018 13:53
* 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.