Jump to content

Help Please! Need to know how to get the attribute from a fieldSelect field to process a vps id


Recommended Posts

Posted

Help Please! Need to know how to get the attribute from a fieldSelect field to process a vps id

What in a nutshell I need to know is how to extract when running addService() function the actual id of the selected item in a fieldSelect box

$planid = $fields->label(Language::_("demo.planid", true), "planid");
        $planid->attach($fields->fieldSelect("planid", $plansall, array(), $plansallID, array()), array('id' => "planid"));
        $fields->setField($planid);

^ that is my specific field I am trying to do(mockup of it) and when the addService() function runs inside my provisioning module I want to be able to grab the id in

$plansallID

and match it with $plansall(the "friendly name" of the actual id I am looking for like for example instead of "12" it would be "centos 6") 

what I am trying to do is basically get the actual id out that goes with the selected item and then use that to run the api call to actually provision the vps.

and I just don't know how to do it even though I have tried many ways already 

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.

Loading...
×
×
  • Create New...