[GH-ISSUE #657] Dropdown for Variables in scripts #418

Open
opened 2026-03-02 02:16:12 +03:00 by kerem · 1 comment
Owner

Originally created by @bradhawkins85 on GitHub (Aug 11, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/657

**Is your feature request related to a problem? No

Describe the solution you'd like
In addition to Script Arguments that are freeform it would be good if scripts could also have "fixed" variables where the input needs to be limited to one of a few possible values.
EG: scriptmode the only valid options would be,
-scriptmode install
-scriptmode uninstall
-scriptmode upgrade

Describe alternatives you've considered
Currently specify -scriptmode install as the default argument then if not specified assume a different mode such as upgrade within the script itself. However this does not allow for multiple alternate modes

Additional context
Would make things easier for community scripts where users may be required to read (and remember) to change these values each time they use the script.
Each script could potentially need multiple dropdowns depending on the intended use of the script.

Originally created by @bradhawkins85 on GitHub (Aug 11, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/657 **Is your feature request related to a problem? No **Describe the solution you'd like** In addition to Script Arguments that are freeform it would be good if scripts could also have "fixed" variables where the input needs to be limited to one of a few possible values. EG: scriptmode the only valid options would be, -scriptmode install -scriptmode uninstall -scriptmode upgrade **Describe alternatives you've considered** Currently specify -scriptmode install as the default argument then if not specified assume a different mode such as upgrade within the script itself. However this does not allow for multiple alternate modes **Additional context** Would make things easier for community scripts where users may be required to read (and remember) to change these values each time they use the script. Each script could potentially need multiple dropdowns depending on the intended use of the script.
Author
Owner

@silversword411 commented on GitHub (Sep 21, 2021):

Partial workaround solution testing in #702

<!-- gh-comment-id:923900240 --> @silversword411 commented on GitHub (Sep 21, 2021): Partial workaround solution testing in #702
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#418
No description provided.