Computing panel volume

Hi there!

My item is plywood - panel with 3 dimensions: width, length and thickness. I set up my system to use Item Variants, where Item is Plywood and Variants are different sizes.

I sell product in cubic meters and I need to calculate volume of 1 panel and then use is it as multiplication.

Can I create a float field and have client script for calculating? Or it requires Server Scripting (since I am playing with trial version - I don’t have access to Server Scripting).

thank you.

Yes, you can use client scripts to perform calculations and populate a field.

However, please note that client scripts are limited to working through the user interface. Calculations won’t be performed for data entered through other means, such as APIs, data imports, Quick Entry, or workflows.

That’s why it’s a better practice to use server scripts for computed results while client scripts can be used to enhance the user experience through real-time visualization.

1 Like