What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How can I better align a 'text box' and a 'text field' on the same line.

    Asked by kiwispin on February 11, 2014 at 04:36 PM

    Hi team

    I am using a shrunken text box, followed by a shrunked text field a number of times in my form. However the text field appears lower than the text box. (Have attached a of pic of this.) I'm guessing the answer is going to be farily simple, but how do I move that text field up/take away some of it's amount of surrounding space, to have the two fields align.

    Many thanks!

    Screenshot
    text field same line same and
  • Profile Image
    JotForm Support

    Answered by EltonCris on February 11, 2014 at 05:43 PM

    Hi,

    Set the field label to align left or removed the paragraph tag (p) on the text element or replace the p tag with span.e.g  <span>text</span>. Example:

    Hope this helps!

  • Profile Image

    Answered by kiwispin on February 11, 2014 at 05:59 PM

    Thanks for getting back to me EltonCris.

    To remove the <p> or add <span>, is that done through the 'Edit HTML' when editing the text-field, or thourhg the properties? (The alignment seems to fix itself when I just click properties, then close it without doing anything, which is interesting.)

  • Profile Image
    JotForm Support

    Answered by abajan on February 11, 2014 at 07:31 PM

    @kiwispin

    That's an interesting observation. If it works, by all means, continue to do it. However, the nature of the form has me wondering if it won't be better to just go with a narrative setup. It's actually possible to do this with our product. Have you already tried our Narrative Fields plugin?

  • Profile Image

    Answered by kiwispin on February 11, 2014 at 07:41 PM

    Hi Abajan

    I have, but we need to pass specific info from one form's fields into a second form's fields. As I understand from another thread I opened, (http://www.jotform.com/answers/330681-Is-passing-data-from-one-form-to-another-using-traditional-narrative-fields-possible) this isn't currently possible with Narrative Fields, so was advised that my best option is the text fields, at the moment.

    Hoping it might make it into that plugin at some stage though, as it would be immensively helpful for our use of Jotform. :)

  • Profile Image
    JotForm Support

    Answered by jonathan on February 12, 2014 at 02:25 AM

    @kiwispin

    Hi, just to clarify, the TEXT(html) field in Form Tools is also not capable of transferring its values to another field. The TEXT field is a read-only field  and is not an input type like the regular Textbox fields.

    I though I should inform you this before you commit to a mistake of using this field as an input field, and later on find out that you cannot pass its value or see its output.

    Thanks.

  • Profile Image

    Answered by kiwispin on February 12, 2014 at 04:02 AM

    Yeah, that was a mistype on my part there Johnathon. I did of course mean to say 'Textbox'. Thanks for making that clear, there! :)