Results 1 to 7 of 7

Thread: HTML fields in form generator: data not sent

  1. #1
    New user
    Join Date
    04-14-15.
    Posts
    6

    Default HTML fields in form generator: data not sent

    Morning,

    Using Contao 3.1

    I have created a form, using form generator, but used HTML for the field types.
    However, when I send the form, only the attachment reaches destination, the data gets left behind.
    How can I resolve this issue?

    Here is the HTML
    <div id="idhere" class="fieldCont">
    <label for="fieldID">Do you have minimum five years experience?</label>
    <input type="checkbox" id="fieldID" />
    </div>


    Jez D

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Use the form generator it also uses HTML for the input fields. Or check your markup. Create a checkbox with Contao and compare with your markup.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    New user
    Join Date
    04-14-15.
    Posts
    6

    Default

    Quote Originally Posted by Andreas View Post
    Use the form generator it also uses HTML for the input fields. Or check your markup. Create a checkbox with Contao and compare with your markup.
    As it says in my post, I have used the form generator and selected 'html' as the field type.

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    So why do you use own HTML code for a checkbox? Use the checkbox type so you will get valid code. Did you compare a valid checkbox against your code?
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  5. #5
    New user cliffen's Avatar
    Join Date
    10-18-13.
    Location
    Lüneburg
    Posts
    22

    Default

    Contao only sends values of fields, created with form generator. There is no simple possibility to change this.

    Use the form generator for yout fields. The HTML field could only be used for styling, helping advices, javascripts, etc.
    Extensions :: Github :: No support via PM.

  6. #6
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Sure? I thought there's only a missing name attribute.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  7. #7
    New user
    Join Date
    04-14-15.
    Posts
    6

    Default

    Quote Originally Posted by cliffen View Post
    Contao only sends values of fields, created with form generator. There is no simple possibility to change this.

    Use the form generator for yout fields. The HTML field could only be used for styling, helping advices, javascripts, etc.
    Danke für ihre Hilfe

    I am now using Contao Form Generator to create the fields and javascript to change the HTML elements. This has solved the problem.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •