Copy link to clipboard
Let's say the other field is called "Rebate". Use this code as the custom calculation script of the Discount field:
event.value = Math.min(4000, Number(this.getField("Rebate").value));
Thank you - that worked like a charm!
Hello Try67, I hope you dont mind me jumping on this thread I have a similar calculation but couldnt quiet work it out from your answer above- I am fairly new to adobe and communities. I have a form where people fill out how much of each product they would like and at the end need to calculate a delivery fee for order under $100 being $10. Order over $100 will get free delivery. Are you able to help or should I post this as a new thread? Thanks heaps Sarah