Hi,
i need to use a condition in my class Milestone :
private $statusField;
if ($idMilestoneType == 23){
$statusField = "required";
} else $statusField = "hidden";
And i have an error in projectorria :
Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in C:wampwwwbeta_V3.1modelMilestone.php on line 57
thx
1) code does not seem to be in the right place.
2) $idMilestoneType is not known : use $this->idMilestoneType
Where i can replace this code to change $_fieldsAttributes ?
because if :
$this->idMilestoneType == 23
in $_fieldsAttributes=array(
"refCustomer"=>"required"
else
"refCustomer"=>"hidden"
in __construct, after parent::__construct($id);
But now, i use attribute "nobr" because my textfield isn't required. But nobr hide the label associated
It is exactly what "nobr" stands for :whistle:
If field is not required, just remove "required" 👿
If field is not required, just remove "required"
Is true :S
