Jump to content

Provisioning Module array issue


U32Frank

Recommended Posts

 

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.

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated