Brendan Altman
10/17/2020, 3:20 AMbattk
10/17/2020, 3:24 AMBrendan Altman
10/17/2020, 3:25 AMfunction fieldChanged(context) {
var customer = context.newRecord
var applyCoupon = customer.getValue('custentity_sdr_apply_coupon');
var couponCode = customer.getValue('custentity_sdr_coupon_code');
//if apply coupon is checked enable coupon code, if unchecked disable coupon code and erase its content
if (!applyCoupon) {couponCode.isDisabled = true;
} else {couponCode.isDisabled = false;
}
}
battk
10/17/2020, 3:26 AMbattk
10/17/2020, 3:27 AMbattk
10/17/2020, 3:27 AMbattk
10/17/2020, 3:27 AMBrendan Altman
10/17/2020, 3:28 AMbattk
10/17/2020, 3:31 AMbattk
10/17/2020, 3:31 AM