We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16020
    • 43 Posts
    Hi I am having trouble getting the form to look right.

    Here is the link:http://lifewater.org/modx/index.php?id=6

    Here is the code:
    [!eForm? &formid=`ContactForm` &subject=`[+subject+]` &to=`[(email_sender)]` &ccsender=`1` &tpl=`ContactForm` &report=`ContactFormReport` &invalidClass=`invalidValue` &requiredClass=`requiredValue` &cssStyle=`ContactStyles` &gotoid=`46` !]


    Can you add line breaks in there, or how would I get it to be on separate lines at least?
      • 30956
      • 1 Posts
      (Hope it’s not too late to answer in this thread, I am new to the forums and MODx in general so I hope you forgive me if there is a rule not to bring up threads older than given period of time)

      You insert the line breaks in the chunk containing the template for your form. For example, when you have the following code:

      <label for="name">Yuor name here</label>
      <input maxlength="60" name="name" type="text" />
      <label for="email">Your email</label>
      <input maxlength="40" name="email" size="40" type="text" />


      You just put a new paragraph or line break tag before each <label> like this:

      <label for="name">Yuor name here</label>
      <input maxlength="60" name="name" type="text" />
      
      <br />
      
      <label for="email">Your email</label>
      <input maxlength="40" name="email" size="40" type="text" />
        • 2090
        • 3 Posts
        Hi, colud you explain to me how I put my form looking smoothly, I mean, looking like a table, all field square with each others


        Quote from: ufchica at Oct 16, 2009, 08:47 AM

        (Hope it’s not too late to answer in this thread, I am new to the forums and MODx in general so I hope you forgive me if there is a rule not to bring up threads older than given period of time)

        You insert the line breaks in the chunk containing the template for your form. For example, when you have the following code:

        <label for="name">Yuor name here</label>
        <input maxlength="60" name="name" type="text" />
        <label for="email">Your email</label>
        <input maxlength="40" name="email" size="40" type="text" />


        You just put a new paragraph or line break tag before each <label> like this:

        <label for="name">Yuor name here</label>
        <input maxlength="60" name="name" type="text" />
        
        <br />
        
        <label for="email">Your email</label>
        <input maxlength="40" name="email" size="40" type="text" />

          • 19369
          • 1,098 Posts
          Open an HTML editor like Dreamweaver and create a table, or style them with CSS
            • 1778
            • 659 Posts
            CSS is your friend !

            In your css file, you can do something like

            
            label{
            display: inline-block;
            width: 120px;
            float :left;
            margin-right: 5px;
            }
            
            input{
            width: 200px;
            float: left;
            }
            


            In your html add a
            as arkunt said in his post, you can embrace each pair of <label> and <input> between <div> to be safe with the floating elements.

            Hope this helps
            Cheers