Hi,
I’m not sure I understand exactly, but I guess a custom function would work better. Here is an example, but you must change it to fit your exact need:
jQuery("#dffs_YourQuantityInputField input").on("change",function(){
if(getFieldValue("The_CCDD_field_internalname") === "Your_Trigger_Value"){
customCalculationFunction1();
}else{
customCalculationFunction2();
}
});
Alexander