Hello,
In my form I have the following custom code:
Currently the class code (equipinfo.class) is displayed like this - SN, PN, SA, etc.
What I would like to do is add some php code to print out a better description. Such as, if equipinfo.class == "SN" echo "State Network". If equipinfo.class == PN echo "Private Network", etc.
I've tried various methods but I'm not sure how to format the if statement. For example, I've tried,
I've also tried putting the curly brackets around the equipinfo.class but still no avail. How should I format my code?
Thanks so much for your help.
Chris
In my form I have the following custom code:
<tbody>
<tr>
<td>Status: </td>
<td>{equipinfo.class}</td>
</tr>
</tbody>
Currently the class code (equipinfo.class) is displayed like this - SN, PN, SA, etc.
What I would like to do is add some php code to print out a better description. Such as, if equipinfo.class == "SN" echo "State Network". If equipinfo.class == PN echo "Private Network", etc.
I've tried various methods but I'm not sure how to format the if statement. For example, I've tried,
<td>
<?php
if (equipinfo.class == "SN")
{
echo "State Network";
}
?>
</td
I've also tried putting the curly brackets around the equipinfo.class but still no avail. How should I format my code?
Thanks so much for your help.
Chris