Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mike 90 posts 258 karma points
    Mar 12, 2015 @ 21:02
    mike
    0

    Enable/Disable Property Input in Admin

    Hi,

    What is the easiest way to have certain properties inputs disabled in the admin and then become enabled if a checkbox is selected.

    For instance say I have a checkbox called "Show related pages" and a text box "Related tags".

    I want the "Related tags" input to be disabled or invisible until the user ticks the "Show related pages" checkbox.

    Is there an easy way to do this?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 12, 2015 @ 22:56
    Jan Skovgaard
    0

    Hi Mike

    The only way to achieve this kind of thing would be to use a custom property editor I think - So you'll need to make it using AngularJS.

    /Jan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 12, 2015 @ 22:57
    Jan Skovgaard
    0

    ...Forgot to reference the workbook where you can learn more about how to create a property editor https://github.com/umbraco/AngularWorkbook

    Hope this helps.

    /Jan

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 12, 2015 @ 23:15
    Dennis Aaen
    0

    Hi Mike,

    For a running example perhaps you should take a look on the Merchello project. They are enable/disable property Input in backofficefor there product editation on variants for example. You can also find the Merchello package https://our.umbraco.org/projects/collaboration/merchello

    Merchello is open source and is available on GitHub so you could try to dive into the code and see how they do it https://github.com/Merchello/Merchello

    Hope this helps,

    /Dennis

  • mike 90 posts 258 karma points
    Mar 13, 2015 @ 00:53
    mike
    0

    Thaks Jan & Dennis.  I really need to delve into Angular as I haven't touched it yet (not enough hours in the day).  Thank you for the links, I will check it out.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 13, 2015 @ 05:27
    Jan Skovgaard
    0

    Hi Mike

    You're welcome - Yeah it can be hard keeping up with all that new stuff sometimes. But once you find some time I think you'll get up to speed pretty quickly.

    Have fun reading :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft