I have structure as like we have in shopping cart with products.
Following is detailed information about my structure :
I have created one page in website, in which there is a button to add lines where user will enter details like product and quantity.
But there is not any option to remove line.
So I want to add a option to remove any particular line, for that I will add "Trash" icon so user can click on it and delete that line.
Can anyone please help me to make it done as like cart?
If you add one2many field that this is by default and else where you need to do design like website sale in which they have added the class and bind it with a method which is created in JS.
Yes
But it's not a normal form view.
I am doing in a webpage so must be done with js.