How to setup a .HTM file for a custom command to allow entering a text value

 From:  Michael Gibson
11712.6 In reply to 11712.5 
Hi Frederick,

re:
> 1.
> Is it possible to show/hide an element like the check button, based on the current value of the drop-down combo?

Yes, I've attached an example that hides the text input table row when the drop-down has a value == 'export'.

It does this by adding an onchange="" event handler to the dropdown and also an Initialize() function.


> 2.
> It seems that MoI reads the custom commands on startup, as edits I make don't seem to take effect until I open/close Moi.

It doesn't read them on startup but when it loads it, it stores it in memory so the next run doesn't load it from disk again.

See here for a moi.ini setting which will disable the caching:
https://moi3d.com/forum/index.php?webtag=MOI&msg=6727.2

- Michael
Attachments: