We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4455
    • 76 Posts
    cackalufabogus Reply #1, 17 years ago
    Hi All,

    Firstly, I hope this is the right place to post...

    Just wondering if there is anyway to have a drop down TV in the manager automatically change the value of another TV in the manager without reloading the page.

    Example - the website is national with quite a few manager users that control content in different regions.

    I have the TV’s

    • Postcode
    • Suburb
    • Region
    • State

    Currently they have the state assigned to the document. Ideally, I would like the clients to be able to enter a postcode and have the region automatically assigned and the suburb drop down would be limited to suburbs in that postcode.

    I should say, we have all the suburb, region & state data in extra tables in the database as well as a handy little xml file.

    Is there anyway of doing this?

    Cheers
    Free
      • 4018
      • 1,131 Posts
      I used to create custom plugins to do this sort of thing. However, I have found that ManagerManager is a much easier solution. Depending on what you’re trying to achieve, you could create either a custom function or custom widget to do what you want to do. Both allow you to use jQuery to manipulate the elements and you can even throw in some PHP scripts to handle the MODx related bits. smiley
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
        • 4971
        • 964 Posts
        Jeff, do you care to elaborate a little more, I am also writing plugins to change one multiselect
        TV based on the behavior of another and seems that we are going thru the same paths that you more
        experienced MODx-ers went thru a while ago.

        I have used MM to hide fields, tabs, etc., move fields, set defaults...
        where can I find info that explains how we "could create either a custom function or custom widget
        to do what you want to do"...

        I am not yet up to jQuery, but getting there fast...
          Website: www.mercologia.com
          MODX Revo Tutorials:  www.modxperience.com

          MODX Professional Partner