<![CDATA[ Success Message - MODX Community Forums]]> https://forums.modx.com/thread/?thread=103845 <![CDATA[Success Message]]> https://forums.modx.com/thread/103845/success-message#dis-post-558524
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.]]>
todd.b May 13, 2018, 06:47 AM https://forums.modx.com/thread/103845/success-message#dis-post-558524
<![CDATA[Re: Success Message]]> https://forums.modx.com/thread/103845/success-message#dis-post-558531 nuan88 May 13, 2018, 09:39 PM https://forums.modx.com/thread/103845/success-message#dis-post-558531 <![CDATA[Re: Success Message]]> https://forums.modx.com/thread/103845/success-message#dis-post-558530
For some reason my code was missing,
<div class="update-profile">
    <div class="updprof-error">[[+error.message]]</div>
todd.b May 13, 2018, 09:35 PM https://forums.modx.com/thread/103845/success-message#dis-post-558530
<![CDATA[Re: Success Message (Best Answer)]]> https://forums.modx.com/thread/103845/success-message#dis-post-558529
<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]]>
nuan88 May 13, 2018, 09:24 PM https://forums.modx.com/thread/103845/success-message#dis-post-558529
<![CDATA[Re: Success Message]]> https://forums.modx.com/thread/103845/success-message#dis-post-558526
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.b May 13, 2018, 03:33 PM https://forums.modx.com/thread/103845/success-message#dis-post-558526
<![CDATA[Re: Success Message]]> https://forums.modx.com/thread/103845/success-message#dis-post-558525
[[+login.update_success:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]
lkfranklin May 13, 2018, 07:36 AM https://forums.modx.com/thread/103845/success-message#dis-post-558525