I have created a form with custom formatting for the radio buttons. If a user clicks Yes, No, NA, or Other the font changes color of only the selected button. BUT when the form is saved or emailed, the formatting is lost and does not appear on the final form.
Can anyone help me to get this formatting to save?
This is what the form looks like on the screen:
Here is what it looks like after submission:
Here is my code:
.sidebyside {display: inline-block; width: 50%;} input[type=radio]:checked ~ label{ /*color: #000000 !important;*/ font-size: 18px !important; font-weight: bold !important; } input[type="radio"]:not(:checked) ~ label { height: 10px !important; width: 10px !important; color: #000000 !important; background-color: #FCFCFC !important; /*width: 50%;*/ }
$(document).ready(function() { $('.radio').on('click', function(e) { if (e.target.value == 'Yes') { /*$(this).find(":checked ~ label").css('background-color', '#FCFCFC');*/ $(this).find(":checked ~ label").css('color', 'green'); } else if (e.target.value == 'No') { /*$(this).find(":checked ~ label").css('background-color', '#FCFCFC');*/ $(this).find(":checked ~ label").css('color', '#FB5944'); } else if (e.target.value == 'NA') { /*$(this).find(":checked ~ label").css('background-color', '#FCFCFC');*/ $(this).find(":checked ~ label").css('color', '#FFC133'); } else if (e.target.value !== 'Yes' || e.target.value !== 'No' || e.target.value !== 'N/A') { $(this).find(":checked ~ label").css('background-color', '#FCFCFC'); } }); });