This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

pymarco
pymarco

I am creating a custom plugin with a backend form. For some of those form fields the user needs to be able to add multiple entries of an unknown amount. Is this possible? Thanks

Shahiem
Shahiem

You can use a datagrid

title:
label: Invoice
span: right

status:

label: Invoice
span: right

products:

label: Products
type: datagrid

columns: 
    item:
        title: Item 
    price:
        title: Unit price 
        type: currency
        format: s0,0.00
    qty:
        title: Quantity 
        type: numeric  
    total:
        title: Total
        type: autocomplete
        options: 
            hoi: ss
            ss: ss
            qq: qq
            ff: ff

Last updated

pymarco
pymarco

Thank you for your quick reply!

I can't find the datagrid field type in the docs. Regardless, I believe our client will need something more like this

http://stellarchariot.com/blog/2011/02/dynamically-add-form-to-formset-using-javascript-and-django/

Thanks again

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.