We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered Success Message

    • 40088
    • 708 Posts
    Revo 2.6.3

    What's the trick to getting the Update Profile form to display a success message? I can't get anything to render. It seems the message configuration is different from say, FormIt.

    This question has been answered by nuan88. See the first response.

      Todd
      • 17301
      • 932 Posts
      Should just be this placeholder and it'll auto reload and display upon update success.

      [[+login.update_success:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 40088
        • 708 Posts
        Hi LK,

        That's what I thought too, but I've had that code in there all along and it's never once displayed any message. Then I thought perhaps there was a "success" property for the UpdateProfile snippet but it seems not, at least as far as I can tell.
          Todd
        • discuss.answer
          • 46886
          • 1,154 Posts
          <h1>Update Profile</h1>
                  <br class="clear" />
          <div class="update-profile">
              <div class="updprof-error">[[+error.message]]</div>
          [[+login.update_success:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]


          and that shows right at this place in the form, in red strangely. The part after the "then" is getting a text string that is in Modx system settings under "login". Make sure it isn't blank possibly, if so you wouldn't see anything when it was printed probably

          Register and login can redirect, wonder if updateprofile can, would think so, can we alter this little code to redirect instead of printing the text? or maybe it would be a variable we can put in the snippet...not sure how

          I really wonder if some of the options available on login would be in updateprofile, like redirectTo [ed. note: nuan88 last edited this post 5 years, 11 months ago.]
            • 40088
            • 708 Posts
            Thanks @nuan88, that did the trick.

            For some reason my code was missing,
            <div class="update-profile">
                <div class="updprof-error">[[+error.message]]</div>
                ...
            </div>
              Todd
              • 46886
              • 1,154 Posts
              Ah great!