Closed SamNeale12 closed 2 years ago
Yep, that's exactly how you'd want to approach it. It should then serialize and be available for use in the script.
I hope to get everything updated to .NET6 soon. I can add this in with those changes.
FYI, I've just committed changes to upgrade to .NET6 and I also included support for the value attribute. I haven't published a prebuilt zip yet, but I will soon.
I've published an updated precompiled release v1.0.
Trying to create a hidden parameter on a script in scriptsettings.json similar to below, while the element is created the value is not
Had a quick look and added the following code which seems to work
\SpecOps-master\SpecOps\Pages\User\Scripts.cshtml In switch statement for the script change event:
SpecOps-master\SpecOps\Models\ScriptParameter.cs In ScriptParameter class