OnChange Client Script spModal Message

bekfro
Kilo Sage

I am creating an onChange client script I need one line of the message to be in red text:

 

<h4><span style="color: #e03e2d;">You MUST acknowledge in the form comments that you do not need to access the systems from the company device to avoid an automatic rejection of your request.</h4></span>'


The span portion of the code is not changing the font color to red, however the H4 larger text is working.

Any suggestion on how to modify this so the text displays red?

4 REPLIES 4

priyatam_pvp
Tera Guru

Try the below code the span placement was wrong

<h4><span style="color: #e03e2d;">You MUST acknowledge in the form comments that you do not need to access the systems from the company device to avoid an automatic rejection of your request.</span></h4>

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Priyatam Patchipulusu


ChrisBurks
Mega Sage

If you copied and pasted that html markup the closing tags are mixed up. The closing </span> tag needs to come before the closing </h4> tag.

bekfro
Kilo Sage

Thank you  @ChrisBurks after modifying the closing tags, I still don't have the text color red... 

ChrisBurks
Mega Sage

@bekfrohonestly. That's how it's done.

ChrisBurks_0-1740432065159.png

 

Could there be some CSS styling in the Theme that has an !important overriding span tags nested in h4 tags?