Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Field won't calculate in ES4

Avatar

Level 1

I have set a field to calculate a value via a script with the following:

1417875_pastedImage_0.png

I have used this exact formula and setup on other forms, however, this form, when I open it, it simply seems to be almost "bypassing" the field and doing nothing.

No calculation, no error. Nothing.

Can anyone help?

3 Replies

Avatar

Level 7

Hi,

have you tried looking at the Javascript debugger, open the form and press CTRL+J and then click the button and see if any errors show.

Avatar

Level 1

Hi MinusZero,

I was able to figure this out earlier today.

The final line

this.value = Final.toFixed(2) ;

should have been

this.RawValue = Final.toFixed(2) ;

Thank you for your reply.

I'm not quite sure how I got away with it working in previous forms since I copied it exactly lol

Avatar

Level 7

LOL, as long as it works i never question these things