Copy link to clipboard
Copied
I know how I can add different fields.
But now I want to multiply a fixed value with a field.
I have one field and want to multiply that value with 0,29
I tried it with the option Javascript and than:
Field1*0,29
But that doesn't work.
How can I give in this calculation?
Copy link to clipboard
Copied
Use simplified field notation:
Field1 * 0.29
Copy link to clipboard
Copied
If you want to use JS use this code:
event.value = Number(this.getField("Field1").valueAsString) * 0.29;
Copy link to clipboard
Copied
Yeh, that one works, tnx!!!!
Copy link to clipboard
Copied
This was helpful for mine. But can you help me with an additional step? I am trying to find the gross premium by a multiplier of commission. If there is no commission, and I put 0 zero into the field, I need the gross premium to auto populate with the net premium. Do you know the code I would put in after the one you stated above to make it auto populate?
Copy link to clipboard
Copied
Create a new discussion for this.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more