On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.

Answered Success Message

Subscribe: RSS
  • 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
    • 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: lk@alienbuild.uk | ■ 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.
      • 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
          <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 1 year, 3 months ago.]
          • 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
            • Ah great!