Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Offline form does not support livechat methods to populate fields #612

Open
billynoah opened this issue Apr 22, 2021 · 2 comments
Open

Offline form does not support livechat methods to populate fields #612

billynoah opened this issue Apr 22, 2021 · 2 comments

Comments

@billynoah
Copy link
Contributor

Description:

Offline form does not use name and email as set by livechat widget methods: setGuestName(), setGuestEmail()

Steps to reproduce:

  1. Initialize a livechat widget.
  2. Call these methods:
    RocketChat(function() {
    this.setGuestName("Johnathan J. Doe");
    this.setGuestEmail("[email protected]");
    });
  3. Open a chat window while omnichannel is offline.

Expected behavior:

The form should either
a. get populated with values as specified by methods
b. not show those fields at all and send the populated data along with the form submissiobn

Actual behavior:

Form fields name and email are empty. livechat widget methods have no effect.

Server Setup Information:

Version of Rocket.Chat Server: 3.13.2
Operating System: Ubuntu 20.04
Deployment Method: Snap
Number of Running Instances: 1
NodeJS Version: v12.21.0
MongoDB Version: 3.6.14 / wiredTiger (oplog Enabled)

Client Setup Information

Desktop App or Browser Version: Firefox 78.8.0esr, Chrome Version 90.0.4430.85 (Official Build) (x86_64)
Operating System: OSX 10.11
@renatobecker renatobecker transferred this issue from RocketChat/Rocket.Chat May 25, 2021
@renatobecker
Copy link
Contributor

Alright, this is not an issue, it's a feature request.

@billynoah
Copy link
Contributor Author

@renatobecker - thanks for your response and for the update. Maybe I'm not understanding but when a user fills the form it sets their name and email so that on subsequent page loads the livechat widget no longer prompts them for that data. My expectation is that when those values are set programmatically it would have the same effect. Does that make sense?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants