Removing or hiding "role added to user" message from consumer portal.

smfoister
Giga Expert

We're deploying our customer service portal and we have noticed that when a consumer registers with the site the roles being added to the consumer are displayed on the portal just like they are internally when a role is applied to a user.

It appears the only way to remove this message is to comment out lines on the RoleManager script include, which is not ideal because this is an incredibly important script. Is there any other way, such as a system property or something that this can be disabled?

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

Unfortunately, the only way to stop the InfoMessages from appearing it to comment out those lines in the RoleManager script include. It shouldn't really be a problem to do this if it's a request platform wide to not have those show when adding roles. It would need to be reviewed every upgrade, but that isn't too bad of a task.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

11 REPLIES 11

Hi,

Can you provide more specific details as to what you did? So we can confirm?

Thanks


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thanks for your reply Allen.

 

I just commented the lines in the script where it was written gs.addInfoMessage for Adding and Removing. It still doesn't work. I have also cleared the cache.

In the second thought I deleted the UI Messages it is capturing. But still it is showing the info messages.

For eg. I commented line number 166 and 167.

find_real_file.png

 

Hello Allen,

My requirement was to modify group members from Catalog Item. I used WF script to update/insert into the Group Membership. I used gs.flushMessages(); to stop the messages in that submission session. It worked for my purpose. 

But still I am confused why the Script Include changes did not work for me. I will investigate on my side and will post the reason on this thread once I find it.

Thanks a lot for your concern on this.

Regards,

Gouri

I have the same issue. I did the same by comment out the addInfoMessage line in RoleManager. The message though does not appear on every single registration of user (CSM customer registration). like they show 2 out of 3 tests. Did you work out what it was?