• Resolved Francis

    (@emolotel)


    Hello,
    is it possible to create a module with three forms and put an add button giving the possibility to add another row of the same forms?
    I give an example I want to create an order form with three forms Code, description, quantity. To these I want to add an add button in order to always repeat Quantity description code. I hope I was clear. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @emolotel

    …I want to create an order form with three forms Code…

    That’s not possible because the HTML standard does not allow nested forms, you cannot insert a form into another.

    So, you should to implement all the process in a same form.

    Our plugin does not allow to generate fields at runtime, however, you can insert all fields at development time, and display the at runtime.

    For example, assuming you have inserted multiple DIV fields, one per row, with the corresponding fields inside them, and you have assigned to these DIV fields the predefined class name: hide

    You simply should to insert a button field in the form with the following piece of code as its onclick event, to display every hidden DIV (row), one by one, as the button is pressed:

    
    jQuery('.cff-container-field.hide:eq(0)').removeClass('hide');
    

    and that’s all.
    Best regards.

    Thread Starter Francis

    (@emolotel)

    thank you so much
    solved great

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘multi article form’ is closed to new replies.