• Hi Guyz, i’m trying to create a select field, when you select another dropdown should appear with options. Can anyone please help…

    Below is the script from the author, when I hook this, it doesn’t work

    I need to do this. When select:
    “Graduation Country” on the other drop down “graduation year” should appear (only if they select country)

    //Dependent fields. Add a “depends” value to the params array. Value should be an array of arrays. The inner array should be of the form array(“id”=>{field id}, “value”=>{field value})
    $category = new PMProRH_Field(“category”, “select”, array(“options”=>array(“cat1″=>”Category 1”, “cat2″=>”Category 2”)));
    $subcat1 = new PMProRH_Field(“subcat”, “select”, array(“options”=>array(1=>”Subcat 1.1″, 2=>”Subcat 1.2″, 3=>”Subcat 1.3”), “depends”=>array(array(“id”=>”category”, “value”=>”cat1”))));
    $subcat2 = new PMProRH_Field(“subcat”, “select”, array(“options”=>array(1=>”Subcat 2.1″, 2=>”Subcat 2.2″, 3=>”Subcat 2.3”), “depends”=>array(array(“id”=>”category”, “value”=>”cat2”))));

  • The topic ‘Dependent filed not working’ is closed to new replies.