Hello,
1st thank you fabrik team for this great component ! O0
I am using fabrik 3.0.6.3-565 updated from git.
I have created a tablejoin (left join) from table A to table B.
Table A
id
datetime
name (field)
Table B
id
datetime
price (field)
quantity (field)
I want to access price and quantity element ID through javascript in order to calculate price * quantity for each repeated group.
On the event blur of price and quantity, I put directly the following javascript (there is no X.js in components/com_fabrik/js/):
Whatever the repeated group number, it gives : join___43___tableb___price_0 and join___43___tableb___quantity_0.
Here is the form
How should I get the proper ID ? (ie for repeat group number 2, I should get :
join___43___tableb___price_2 and join___43___tableb___quantity_2)
Thank you for your help.
remroc
PS : From fabrik wiki, I tried this.id but it gives me : undefined. This is why I use this.element.id
1st thank you fabrik team for this great component ! O0
I am using fabrik 3.0.6.3-565 updated from git.
I have created a tablejoin (left join) from table A to table B.
Table A
id
datetime
name (field)
Table B
id
datetime
price (field)
quantity (field)
I want to access price and quantity element ID through javascript in order to calculate price * quantity for each repeated group.
On the event blur of price and quantity, I put directly the following javascript (there is no X.js in components/com_fabrik/js/):
Code:
var ID = this.element.id;
alert(ID);
Here is the form
How should I get the proper ID ? (ie for repeat group number 2, I should get :
join___43___tableb___price_2 and join___43___tableb___quantity_2)
Thank you for your help.
remroc
PS : From fabrik wiki, I tried this.id but it gives me : undefined. This is why I use this.element.id