Hello,
We want to change the selected text color and background of dropdown. Changing the background of dropdown works but text color doest work.
Any idea how can we change the selected dropdown value color conditionally ?
Hello,
We want to change the selected text color and background of dropdown. Changing the background of dropdown works but text color doest work.
Any idea how can we change the selected dropdown value color conditionally ?
Hi ProInception
See the link below:
https://community.k2.com/t5/K2-Five/Can-t-change-a-form-s-theme-via-a-rule/m-p/111359#M3349
Regards
Elvis
Hi,
Please try this script
<script>
$('div.input-control-m-c > div > a > span').css({'color' :'blue'});
</script>
Instead of using conditional style, you will need to add a condition on the change event of the dropdown list, example:
If Vlaue = X
Transfer script to a Data Label
Clear Data Label
Else
Transfer Script (different font color) to Data Label
Clear Data Label
Make sure to check literal and uncheck preventXSS in the data label properties
HTH
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.