FileInput Passing empty string to getElementById - Forum

Forum Navigation
You need to log in to create posts and topics.

FileInput Passing empty string to getElementById

Hi all,

Issue:
My browser throws a warning when entering/exiting or four when clicking a fileinput control.

Checks:
I noticed in a largely populated project, then checked if it occured in an empty project to make sure it wasn't some other elements' script causing it.
Finally, I spot-checked other form controls, they don't have this warning thrown.

Steps to reproduce:
Launch index.html from the file or run the project from VisualNeo Web, press F12 for devtools, make sure you see the console.
Then hover/click the FileInput elemen (is the dark grey square).

It is just a warning, but I am not sure if this would mess up scripts further down the line.

Uploaded files:
  • You need to login to have access to uploads.

Hi @ruben-vis,

Please take a look here:
https://webhelp.visualneo.com/FileInput.html

You need to define a property-name as it's mandatory.
It will solve the problem.

Regards.

Ruben Vis has reacted to this post.
Ruben Vis

Hi @luishp,

Thank you!

I remember looking for this attribute, not knowing it should be prefixed with "proprerty" I overlooked it.

Works wonders after this fix.