We have a custom login page which is mostly a copy of the default one. However, if a user signs in and they need to accept terms and update their profile. They are first prompted for terms acceptance:
And then prompted to update their profile:
All good except the message for "You must accept out terms to continue" which remains after proceeding from the accept terms page to the update profile page.Â
How can we remove this message?
This is the code which is largely the same as is DNN source:
Has anyone any ideas on how to remove the accept terms module message after they have been accepted? Thanks
Since it looks like some custom stuff I assume you can adjust the code by your self. So the easiest way is set up some javascript on the checkbox I think. And then try to find the div and set it to display:none;
The "AddModuleMessage" behaviors are outside of your module, my assumption is that you have SupportsPartialRendering enabled as well for your login control, so as the user goes through your process there is nothign that tells that controls that is outside of your context to refresh. My recommendation for you would be to NOT utilize the AddModuleMessage and handle the display of the error on your own so you can have full control.
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.