Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check boxes with the Prawn Gem

Is it possible to have Prawn fill in check boxes depending on the result of a boolean? For example, I'd like to have a 'Yes' and a 'No' checkbox for a series of questions to record responses. Upon receiving the information, I'd like appropriate checkbox filled in. Is this possible, and if so, how?

Thanks!

like image 750
Ryan Avatar asked Nov 24 '13 23:11

Ryan


1 Answers

There is a gist here that discusses this. The basic idea though is you would need to use a font set that has support for checkboxes to get this to work.

If you want anything fancier than that, prawn does not support checkboxes out of the box, so you would need to create something for this.

like image 142
bigtunacan Avatar answered Sep 30 '22 06:09

bigtunacan