Help formatting an ajax field output

2 months 3 weeks ago #331443 by sbramall77
Replied by sbramall77 on topic Help formatting an ajax field output
Thanks again
Totally sorted now
<span class="[cb:if myField="1"]p-2 mb-2 bg-success text-white align-middle[cb:elseif myField="0"]p-2 mb-2 bg-danger text-white[/cb:elseif] [cb:else]p-2 mb-2 bg-warning text-white[/cb:else][/cb:if]">[value]</span>

Is what I ended up with and it is perfect. This is just for anyone else looking for a similar solution.

The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.178 seconds

Facebook Twitter LinkedIn