We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    You should just be able to copy/paste the code used for the country, and simply edit the name of the file it includes, and any other names from "country*" to "state*". Again, for the file, take the countryCodes.php file as your example and make a stateCodes.php file.
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 12684
      • 118 Posts
      Thanks Sotwell. I did that.

      So how does it call it into the form. I have tried inserting [+form.state+] into the verifyregtemp chunk, but it does nothing.

      Here is my call

      [!WebLoginPE? &type=`register` &regType=`verify` &registerTpl=`verifyregtemp` &groups=`Registered Users` 
      &notify=`*********@hotmail.com` &regSuccessPause=`3` &regRequired=`email,username,fullname,password,formcode,tos` 
      &pruneDays=`7` &liHomeId=`5,2,1`!]
        • 18913
        • 654 Posts
        I need to do something similar to that described above, namely create publicly viewable pages editable only by the page owner. So if there were 10 web user, each would have a page that only they could edit but would be viewable by everyone else. Have people who have used the above approach been happy with the result? Or is another approach recommended?
        TIA,
        MattC