U32Frank Posted October 16, 2018 Share Posted October 16, 2018 Hello, I am having problems creating a new Provisioning module, specifically with ConfigOptions. I have a single text box that collects vmname. The whole function looks like this:- function hypervdev_ConfigOptions() { return [ "vmname" => [ "FriendlyName" => "VMName", "Type" => "text", # Text Box "Size" => "25", # Defines the Field Width "Description" => "Textbox", "Default" => "EUK-234-2345", ], ]; } I think from what I have read in the docs this creates an array called $params? which I should be able to use in other functions that are passed $pramas? I can't seem to call this data back. I tried $params[vmname] but this appears to be empty, and $params just returns the word 'array'. I'm sure this is user error and would be very happy if someone can correct me. 0 Quote Link to comment Share on other sites More sharing options...
U32Frank Posted October 16, 2018 Author Share Posted October 16, 2018 I have actually worked this out myself. it seems that if you create your own custom array objects they are numbered like this {$params['configoption1']} {$params['configoption2']} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.