How to Add Error Message like textbox in checkbox or in radiobox

Hello Koders,

I need your help!

Can Anyone tell me how can we add an error message in the checkbox or in radiobox likewise in the textbox contains

image

Please tell me, anyone, how to do that??