693 Posts
rpoy
7 years ago
2
Topic

Hi Everyone!

I have 3 fields: Persons(GroupX), SinglePrice(text), and SubTotal(text) as part of a signup form.

On the Subtotal field, I am trying to add a computation rule which multiples the number of GroupX items and the SinglePrice together.  It appears that the only value that I can get from the GroupX is 1.

It seems to me that this is this something that the computation rules are capable of handling.  Does anyone know if it is beyond the scope or it is a bug? 

thanks!

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

Hi,

I'm afraid this is beyond the scope of computation, you would need to add some javascript for this yourself.

693 Posts
rpoy
7 years ago
0
Level 2

Hi Klas!

Thanks for your help!  Is a valid solution to use the Code-JS field?

I am trying to add a click event to my groupX field so that when its clicked, a calculation can run like so:

$('#groupx_field').onclick(function() {
var val=$('#groupx_field').value;
alert("GroupX Val"+val);
} );

This is not working...  So I am wondering if I am even on the right track.

thanks

Get a VIP membership