[Widget] Filling the fields dynamically by picking up data from an External Database

Good Day

I hope you can advise ? thank you !

I would like to add a new widget in my LMS, which will be presented as a Contact Form.
What I must do is picking up the users details dynamically from the LMS Database, for instance the user’s name, user’s email address, and also dynamically pick up the current URL as shown in the browser.

Code example:

FreshworksWidget(‘identify’, ‘prefill’ {
name: ‘John DOE’,
email: ‘jdoe@mycompany.com’,
}, {
subject: ‘Full Course Name’,***
description: ‘My course is not working blah blah blah’,
group_id: 123,
product_id: 12,
);

Apart from the ‘description’ filed that will be filled in by the end-user, all of the other fields should be filled automatically.

Can anyone advise how I can achieve this, please?
Thank you very much !!!

Rock