Hello, I am struggling to find the code to insert a building block using a tick box with a command button.

Also, im pretty new to this, does all the code go in the command button line? I would like to fill out the form with tickboxes and a few text fields then click ok when i am finished and it paste at the docvariables i have made?