Closed dewiweb closed 5 months ago
for functionality like this you have to use the second parameter of the isVisible function. https://bitfocus.github.io/companion-module-base/interfaces/CompanionConfigField.html#isVisible
It took me a while to realise why this wasnt working, as that function lookes valid, but there are a couple of mistakes on your side.
1) you aren't returning a value, so the output of your function is always 'undefined'
2) the check options.basename === "true"
is checking the value of a property called basename, not using a variable called basename.
So if you pass basename in through the data property, and change that to be (options, data) => options[data.basename] == "true"
then you should have more luck
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
My module (not yet published as a bitfocus repo) https://github.com/dewiweb/companion-module-digitalprojection-mls generate dynamically actions based on constants.js file declaration.
All works fine but "isVisible" . Works on static defined action but not in dynamically genarated...