Sure thing, although it gets a bit complex. I think what I am trying to achieve may be simple, but the current HTML code is as follows and is included with the esri Citizen Problem Reporter application which I am trying to customize.
{category} problem reported on {CreationDate}.<br /><br />
<b>Details:</b> {details}<br /><br />
<b>Status:</b><br />
<table style="border-collapse: separate; border-spacing: 2px 4px; width: 100%; table-layout: fixed; margin: 0px -2px; max-width: 350px;">
<tbody><tr height="16">
<td style="{expression/expr0}; text-align: center; width: 25%"></td>
<td style="{expression/expr1}; text-align: center; width: 25%"></td>
<td style="{expression/expr2}; text-align: center; width: 25%"></td>
<td style="{expression/expr3}; text-align: center; width: 25%"></td>
</tr>
<tr height="24" style="text-align: center;">
<td style="text-align: center; width: 25%; font-weight: normal; padding-left: 0px; word- wrap: break-word;">Submitted</td>
<td style="text-align: center; width: 25%; font-weight: normal; padding-left: 0px; word- wrap: break-word;">Received</td>
<td style="text-align: center; width: 25%; font-weight: normal; padding-left: 0px; word- wrap: break-word;">In Progress</td>
<td style="text-align: center; width: 25%; font-weight: normal; padding-left: 0px; word- wrap: break-word;">Completed</td>
</tr>
</tbody></table>
<table style=" border-collapse: separate; border-spacing: 0px 0px; width: 100%; table-layout: fixed; margin: 0px -1px;">
<tbody><tr>
<td style="display:{expression/expr4}; text-align: left; width: 100%">
<b><br />Resolved On:</b> {resolutiondt}<br /><br />
<b>Resolution:</b> {resolution}<br /><br />
</td>
</tr></tbody>
</table>
I would like to add the field locroad and formatting. I only want locroad to show if the probtype == "Dead animal" If not, I do not want locroad to show.
I created an expression DeadAnimal[expression/expr5) for the condition:
$feature.probtype == "Dead animal";
Then I simply modified and added your HTML idea:
<div style="display:{expression/expr5}">{locroad}</div>
While this added the locroad to the pop up, it is not evaluating the expression showing the locroad field and formatting for a probtype that is not "Dead animal". In this case I do not want the locroad field to show because it is a different porbtype (Graffiti painted on county asset)
I hope this provides some clarification.