OnChange Client Script spModal Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 12:48 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 12:52 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 12:55 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 01:11 PM
Thank you @ChrisBurks after modifying the closing tags, I still don't have the text color red...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 01:22 PM
@bekfrohonestly. That's how it's done.
Could there be some CSS styling in the Theme that has an !important overriding span tags nested in h4 tags?