Hi all,
Using a RTF in my Form, I wish to change the font color. But the actually RTF doesn't have font-color.
How can I add this to the rtoolbar?
Thanks in advance.
Regards
Hi all,
Using a RTF in my Form, I wish to change the font color. But the actually RTF doesn't have font-color.
How can I add this to the rtoolbar?
Thanks in advance.
Regards
I'm on version 10.2, so I don't have the RTF elements yet, but here's how I do it with a multi-line field. You might be able to adapt this to work with an RTF field.
Add this Custom HTML element to the form:
<label>Select Font Color:</label><br><input type="color" id="colorPicker">
Make the multi-line field include CSS Class Name of myTextBox.
Add this Javascript to the form:
$(document).ready(function () { $('#colorPicker').change(function() { $('.myTextBox textarea').css('color', $(this).val() + '!important'); }); });
Of course, this is just for displaying it to the user when the color is picked - if you want to carry it over to the archive/read-only version, you would need to store the color in a LFForms field that could be retrieved and updated when the form is reloaded.