Custom View depending field value

@peted
Without problems.
Add new form to the function ‘display’ to file …/view.detail.php:

  public function display(){
   if ($this->bean->order_type == "Repair" || $this->bean->order_type == "Other" || $this->bean->order_type == "Stock") {
      $this->dv->formName='DetailView_ros';
    }
    parent::display();
  }
1 Like