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

  • Profile Image
    kiwispin
    Asked 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!

  • Profile Image
    EltonCris
    Answered 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
    kiwispin
    Answered 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
    abajan
    Answered 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
    kiwispin
    Answered 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
    jonathan
    Answered 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
    kiwispin
    Answered 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! :)