Enabling property B based on property A

Hi Guys,

So at the moment this is a proof of concept idea and I’m wondering if anyone has done this before?

I’m after a property that is initially a dropdown or radio button, but if an option for example “other” is selected then another set of properties appear to the editor for completion.

Lets say for example you have a document type called “news item”.
On it there is an image property.
There is also a drop down called: “Facebook Image” and it has the following options:

a) Use Document Image
b) Use Site Image
c) Use Custom Image

If Use Custom Image is selected, I want a media picker control to become available (either it was hidden before or disabled before) so the user can select/upload a custom image to use.

Is this possible? Has anyone here done something like this before that they would be willing to share?

Thanks :slight_smile:

Nik


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/68195-enabling-property-b-based-on-property-a