Alan Grzybowski Posted January 11, 2021 Report Posted January 11, 2021 I'm trying to create a form for subtraction but I'm not familiar with javascripts
Joe Smith Posted November 29, 2023 Report Posted November 29, 2023 Bump for this, I would like to know this as well.
Official Nitronaut Reymund Oyong Posted February 20 Official Nitronaut Report Posted February 20 (edited) Greetings, @Alan Grzybowski @Joe Smith Thank you for reaching out through our Community Forums! Below is a sample script if you wish to subtract one or multiple fields from another field. The script should be placed on the field where you want to display the result. In this example, Text3 has the script to subtract Text1 and Text2. // Obtain the value from the first field var v1 = getField("Text1").value; // Obtain the value from the second field var v2 = getField("Text2").value; // Set this field value equal to the difference event.value = v1 - v2; You will change "Text1" and "Text2" to the names of the text fields that you have chosen. This will subtract Text1 from Text2. Kind regards, Edited February 20 by Reymund Oyong
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now