Skip to Content Skip to Menu

Help formatting an ajax field output

2 years 2 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.

Cheers
Steve
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum