Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

fill color also creates unwanted border

JennyAnnRowe-ou
Level 4
Level 4

Hi,

I am using a conditional statement that adds fill color to a check box and a subform field when the check box is checked. The color fills in properly (and upon de-selection, it disappears) as it is supposed to, but on some fields, there is also appearing an unwanted border around the check box. Not only does the border appear, but it fails to disappear upon de-selection.

So, my response is, Say What?! Hoping someone can let me know what is going on and how to get rid of the border.

Here's the exact code I have applied to one of the check boxes and which is creating a border as well.

if (TakeTAKSAcc.rawValue==1){TAKSAccSubjects.presence="visible",this.fil lColor="238,238,238";}else{TAKSAccSubjects.presence="hidden",this.fill Color="255,255,255";}

~Jenny

1 Accepted Solution
tgoodmannz_bss
Correct answer by
Level 4
Level 4

Hi Jenny

If you want to get rid of the border, you can just set it's thickness to 0.  Another option is that you could set the edge colour to white:

if (TakeTAKSAcc.rawValue==1){TAKSAccSubjects.presence="visible";TAKSAccSubjects.fillColor="238,238,238";
TAKSAccSubjects.border.edge.thickness = "0.0pt";
}
else{TAKSAccSubjects.presence="hidden";
TAKSAccSubjects.fillColor="255,255,255";
TAKSAccSubjects.border.edge.thickness = "0.0pt";
}

Thanks,

Tim

View solution in original post

0 Replies
tgoodmannz_bss
Correct answer by
Level 4
Level 4

Hi Jenny

If you want to get rid of the border, you can just set it's thickness to 0.  Another option is that you could set the edge colour to white:

if (TakeTAKSAcc.rawValue==1){TAKSAccSubjects.presence="visible";TAKSAccSubjects.fillColor="238,238,238";
TAKSAccSubjects.border.edge.thickness = "0.0pt";
}
else{TAKSAccSubjects.presence="hidden";
TAKSAccSubjects.fillColor="255,255,255";
TAKSAccSubjects.border.edge.thickness = "0.0pt";
}

Thanks,

Tim

View solution in original post

JennyAnnRowe-ou
Level 4
Level 4

Oh yeah---why didn't I think of that?!

I am still curious as to why the border suddenly appears in the first place, however.

Thanks for your response!!

~Jenny

tgoodmannz_bss
Level 4
Level 4

Yes, I think when the fillColor property is set, then it may make the default fill edge visible (which has a default colour and width)

It sounds like you were also experiencing different behaviour with different objects - you could possibly create Custom Objects with particular fill/edge settings so that the fields act consistently

JennyAnnRowe-ou
Level 4
Level 4

That makes sense. 

Yes. I have some funky things going on. I recently posted a question about how my table header repeats on the 2nd page, but not thereafter, but didn't get much response to that one.

Thanks again for your help and insight!

~Jenny