How to manipulating Editor form inputs value

How to manipulating Editor form inputs value

cj1005cj1005 Posts: 142Questions: 45Answers: 1

Hi,

This is probably best explained using my actual situation.

I have a sales order item, which has a qty ordered.

When the user despatches the ordered item, the editor form appears where the user can enter the number of damages and the packed qty (these two numbers will match the ordered qty).

The user will always enter the damages first, so I want to know is it possible to auto-populate the packed qty with 'Qty Ordered' minus 'Damages'?

I know how to do this with JS, by giving each input field an id, but I was wondering if there is a better with data tables?

Cheers, Chris

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.