PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

html-input-field without

  1. ZeehDesign
    Member

    Hi!

    I use the html input-field to style, rewrite and group the form. Feks. befor a upload-file-list i add a <ul class"=fileupload">

    But: the html-output is <li id='field_1_82' class='gfield gfield_html gfield_no_follows_desc' ><ul class="upload"> and this code doesn´t work on IE. Is there any way to disable
    <li>...</li>
    arround the html-input?

    Thanks for help!
    Markus

    Posted 13 years ago on Monday November 14, 2011 | Permalink
  2. ZeehDesign
    Member

    I just found a "hack" to work with emty lists <li> ... </li>:

    </li><li><ul class="upload"><li style="display: none">

    But its not prof to work with emty li and display none. So a feature to add html with own controll will be nice.

    Posted 13 years ago on Monday November 14, 2011 | Permalink
  3. You figured it out. The HTML block is meant to be contained inline with the rest of the form structure. It's treated as a "node" if you will in the structure just like any other form element. That's how the form builder works.

    If you want to break the parent list, you have to manually close the parent list, then re-open the list after whatever markup you introduce. If you need to add other freeform HTML, you might be better served to add that into your page template and style/position with CSS as needed.

    Posted 13 years ago on Wednesday November 16, 2011 | Permalink
  4. ZeehDesign
    Member

    Hei Kevin!

    Thanks for your anwer. The problem is that i need a html-markup like

    <li>...</li>
    <li>...
        <ul class="upload">
           <li>file-upload</li>
           <li>file-upload</li>
           <li>file-upload</li>
           <li>file-upload</li>
        </ul>
    </li>
    <li>...</li>

    That is no solutin to add a <ul class="upload"> into my page and style with css. I need to add markup and i need to add this where i need the markup (ok, i can use a jquery-based solution to add html-markup, but thats not so perfom).

    So, i like to follow your given markup with <ul> <li> and its possible. But to close manuell list and work with emty <li> and hack with display="none" is bad an blows up the html-markup. Thats the reason why gravityform need to add html without a <li> ... </li> wrapper.

    Posted 13 years ago on Thursday November 24, 2011 | Permalink