I deployed a form last year. Some enumerators are using the Enketo version; some are using a Kobo Collect version that was deployed via QR code. I have just discovered that although all the posts indicate that colour text is possible, the colours I have specified do not appear to show on the Kobo Collect form. See the attached screen grabs of the same information via Enketo and via Kobo Collect:
I am clearly not a “true” coder . I’m afraid that this hint still has me puzzled… I have used asterisks for bold, which works on both platforms. Hmmm. Perhaps the asterisks need to be outside the specification for red? But then I still don’t understand why the code with no asterisks doesn’t give red in the Android version. Surely it is not only mandatory questions that can have colour applied?
Sorry - I have just realised I sent the wrong code yesterday for the bold & red & blue - here is the code that is in fact giving me the results I am asking about (i.e., this explains why all of the text at the top of the deploy image is in bold):
Hi @taniak,
Don’t worry. The * asterisk is a system standard UI-element, shown when the question is mandatory (required = true).
The red/blue here, is just a system difference between Enketo and Collect.
OK, so the asterisk works in both Enketo & Kobo Collect to give bold. This seems to happen regardless of whether the statement is mandatory or not (required can be either true or false). Bold works in my note (required = false). But you are now saying that colours only work in Kobo collect if the statement is true? My code is in a note type field. Notes have to be “false” because the enumerator cannot answer them (I have just tested this!) - so you are saying that unless the response is mandatory (required = true), then the colour won’t show in Kobo Collect?
Sorry, to explain better:
The asterisk on the UI-screen, bevor the shown question label, has nothing to do with your coding (colour, bold etc.). This asterisk is automatically set/shown by the Kobo/ODK system to indicate that this question is a mandatory one.
My hint only noted that the system seems to use different colour (red/blue) for Collect vs. Enketo.See predator question example here:
Yes, I see what you are saying. I admit that whilst I noticed the different coloured “screens” (white Kobo Collect background vs blue Enketo) and the different coloured asterisks (red Kobo Collect vs blue Enketo), they didn’t matter as such. I’m trying to understand if I can get red text in a note using Kobo Collect, where the question is not mandatory (i.e., no asterisk in front of it). “As there are no moths in the inert, leave it in place” in my first set of images is red in Enketo but not in Kobo Collect. Can you confirm that it is not possible to get colour in a non-mandatory question in Kobo Collect?
Interesting, because when I downloaded a xmls from the forum on how to change colour, the example does not have “true” for required. Agreed, it does also not state “false” - is this the issue?
In that example, the question type is a calculate, not a note, but I don’t see why it should work for a calculate type question but not for a note type question.
Many thanks for your time on this, by the way!
Tania
So it’s not working in Kobo Collect “just because”? Typical for that to happen to me! If you cannot find a problem with the code I have used to get red text, then I’m not sure where to go. Maybe it will just have to be too bad for the Kobo Collect enumerators…