How to insert a text field inside boolean (single on/off) field in node form I have created a a content type and I am using it as a registration form to be created by anonymous users.

When I create a field with type of boolean> single on/off checkbox
for my terms and conditions (where it will display the terms and they will be required to check the single checkbox if they agree).

My problem is i want to add another text field for this particular field type in node form for me to put in the text for terms and conditions.

There is a help text box there which i can use, but i used it to display tooltips.

What is the best way to add another text field to boolean type field in node form?
You could implement hook_form_alter() and add a suffix or prefix to your field. The suffix and prefix may contain html.

    $form['terms'] = array(
      '#prefix' =&gt; '&lt;div class="my-class"&gt;Something before the field&lt;/div&gt;',
      '#suffix' =&gt; '&lt;div class="my-class"&gt;Something after the field&lt;/div&gt;',
    );


For a detailed instruction how to write a module that implements hook form alter see this blog post.

There is also a module that can add markup widgets to forms. Checkout Markup.