Elements in a group have incrementing id's- Help

robbal

New Member
Hi All

I have a Order form with a join to a items that can be added dynamicaly(table). Problem is that when i use a javascript event "click" on the items .. their form elements increment so I cannot read them with the following javascript.

var form = Fabrik.getBlock('form_67');
var quote_items___item = form.formElements.get('quote_items___item').get('value');
console.log(quote_items___item)

The reason I wqnt to do this is to populate the Price X Qty from the database when they click on the item.


Is there a better way to do this form in a form.. so stuck.
upload_2021-3-25_12-12-29.png


Thank you in advance
 
Thanks that the easy part but without knowing the names of the elements its mute. By the way how doe sone go about getting a paid subscription.
 
Thank you. What I was looking ofor is this


var qtyIn Filed = this.form.formElements.get('quote_items___qty_' + this.getRepeatNum()).getValue();

This picks up the incremental element numbers in a group
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top