Javascript issue

So When I used custom JS, the code would not work, i tested it multiple times, and followed professionals

Edit: I was using node.js code and maybe Elfsight needs a preprocessor to coding additions.

1 Like

@Starred Could you please send me a direct link to the page where the widget in question is installed?

If you’ve and removed the code from the Custom JS field of your widget, please send it right here. I’ll be happy to look into this for you :slightly_smiling_face:

The widget with this issue is the “File embed” now I’m not sure if this is a bug with all things but this is what I saw, so I was trying node.js scripts, I might have a fix, Maybe try adding a preprocessor to extra code additions.

1 Like

I’ve checked your widget and couldn’t find any code in the Custom JS field:


If you could say what you’d like to achieve and specify the code you were trying to use, we would be delighted to help :slightly_smiling_face:

The link to the page where your widget is installed would be much helpful!

I deleted the code, sorry for the trouble. I realized the code was wrong itself. Sorry for the late reply yet again…

1 Like

The issue was the connection to the embed itself, I forgot to put the file display id, but I realized I did it wrong.

1 Like

app.get(‘/user/:id/docs’, function(req, res) {
var id =;

I am so sorry for the trouble, I found the fix, I tried {userid} but I needed to use :id in /user/:id/docs

1 Like

Happy to hear that you’ve found a solution :slightly_smiling_face:

If anything else comes up, just let me know. I’ll be happy to advise!

1 Like