7 years ago
4
Topic

Hello,

When I use cascading dynamic field, the text in the field is correct, but, when I try to calculate between two of them, the result is wrong because the used data are the "id" of each.

I tried changing value option, but the field shows multiple choices instead a single data...

Can you help me ? Thanks !

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

You would like to use text for calculation?

7 years ago
2
Level 1

In the first field I have "10", in the second I have "2", I want the result : "20".

But, when I use the calculate function, the result is différent since calculation is between "id"s of fields.

4229 Posts
Kadministrator
7 years ago
1
Level 2

Calculation is made on value of the fields, not id. To use text, you would need to create custom attribute starting with data- (e.g. data-text) in your select dynamic cascades and populate it with your text. Then you can use this attribute in computations (check Custom Attribute at bottom and enter part after data- in the box next to field)

7 years ago
0
Level 3

Where can I find a list of custom attribute ? At the bottom in the modal box, there is only "data-*" and unless examples.

Get a VIP membership