We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38004
    • 96 Posts
    There's an error in SPForm.

    The form generates some text that reads:

    Click "Submit" when done.:
    There should not be a full stop at the end of that line before the colon.

    I can easily remove it of course, but I don't want to have to do that every time the form is updated.
      • 3749
      • 24,544 Posts
      SPForm is not updated very often, if that's any comfort. wink

      I just looked at the code and I can't see where either character is coming from. Neither the period nor the colon are in the form Tpl chunk or the English language file in the version I have.

      Are you sure you didn't alter the enter-comments lexicon string in the Manager?

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 38004
        • 96 Posts
        Positive I haven't done anything other than install the component and put the appropriate call on my page.

        I can't find the text
        Click "Submit" when done.:
        in any of the tpl files that SPForm creates so it must be in the snippet or php somewhere.
          • 3749
          • 24,544 Posts
          It's a language string. Go to System -> Lexicon Management.

          Select the spform namespace, then the default topic. The key of the string you want is: enter-comments

          It replaces this placeholder in the spForm Tpl chunk:

          [[+spf-comments-prompt]]
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting