Settings API callback function inserts html quotes from nowhere

You have to escape the quotation marks like this.

<input type="radio" name="%1$s[%2$s]" onclick= "showChoosenField(\'%3$s\')" value="<?php checked(\'%3$s\', get_option(\'%1$s[%2$s]\'), true); ?>"/>