yes, its because the $FormFunction differs for each form i want to show.
This is where I'm stuck though, I can't figure out how to setup the intermediary function, at least easily.
//using url_variables to call this function when a certain action is used
public function showCustomFormA(){
return $this->renderWith(array('FormPopup', 'Popup'));
}
//using url_variables to call this function when a certain action is used
public function showCustomFormB(){
return $this->renderWith(array('FormPopup', 'Popup'));
}
// want to use this to return my desired form
public function FormForPopup(){
}
public function CustomFormA(){
...form code...
return $form;
}
public function CustomFormB(){
...form code...
return $form;
}
and my FormPopup.ss template would just have
$FormForPopup
How can I get FormForPopup() to return my form without using a bunch of if or switch statements that check which action is being used? This is probably simple but i'm unsure of how to best approach it. perhaps my approach so far is completely wrong.