Mibew / mibew

Mibew Messenger - open-source live support application
https://mibew.org
Other
471 stars 204 forks source link

Name missing from the chat window if using a custom url and users aren't allowed to edit their name #265

Closed effgarces closed 2 years ago

effgarces commented 2 years ago

Environment

faf commented 2 years ago

Expected behavior Using a custom link to the chat, that includes the user name and email, and with the option to allow for the users to edit their name disabled, the name of the user should display in the pre-chat form and then afterwards the same name should show up on the chat as their name

No, that's not an expected behaviour. You're trying to misuse an undocumented feature.

If you restrict a user to change his name, it means that the name should not be altered using the standard interface. It's very simple for an user to alter a value of a disabled field, and it's impossible for an application to separate your custom value of the name field from a value that was altered by an user. That's why the name field in pre-chat survey form is disabled and its value is ignored after the form submission. And that's a normal behaviour.

If you really need to somehow dynamically set a user's name while restricting to change it, you'll have to write a plugin for that.