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 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...