Add text in the middle of a form

Anonymous
Not applicable

Add text in the middle of a form

I'm wondering if anyone knows how to add a line of text in the middle of a form. We have a form with 6 fields and between fields 4 and 5 we want to add some instructional text. Does anyone know how to do this?
Tags (1)
4 REPLIES 4
Nicole_Mossinge
Level 7

Re: Add text in the middle of a form

You can write some CSS or JavaScript that adds space between specific form fields, and add it to your landing page. Then you can add a block of text where you created the space in the form.
Anonymous
Not applicable

Re: Add text in the middle of a form

As an FYI, we are building this feature into the new Forms editor.  More details on availability coming soon!
Anonymous
Not applicable

Re: Add text in the middle of a form

Wait for Forms2.0
Alok_Ramsisaria
Level 10

Re: Add text in the middle of a form

Here is some sample javascript code. In the below sample code one line is added after the 4th field

 

<script type="text/javascript">

jQuery(document).ready(function(){

var class_name = 1;

jQuery("li").each(function(){

jQuery(this).addClass("class"+class_name);

class_name ++;

});

         jQuery('.class4').after('<li><strong>Subheading</strong></li>');

});

</script>