How do i change style of specific radio button label from Contact Forms 7 plugin based off data retrieved from API endpoint?

[ad_1]

Hi, sorry if this is a basic question or something easy, but I’ve tried searching online and I wasn’t able to find solutions, and I’m also new to WordPress. Perhaps I hadn’t search properly, but thought I could try asking it here.

I’m retrieving a piece of data from an API endpoint called ‘heartTypes’ for example using a custom plugin. I’m then returning it through a shortcode which gives the result “WEAK”.

There are 4 heart types, WEAK, SLIGHTLY WEAK, PASSABLE, STRONG.

How do I only make the WEAK radio button label have a different border color after retrieving it from the API endpoint by integrating it from the radio button from contact forms?

If the shortcode returned PASSABLE, only the PASSABLE radio button label would have a highlighted border and so on.

Or a different plugin is fine too, but I’m slightly lost on what path I should now be taking. Any help or insights would be appreciated!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer