Set default value

Hello,

I want to set the default value for the specific field. When I select the work order, the field “For Quantity” is fetched from the work order which is created but I want that field to be 1 though anything is written in the work order how to set it to 1 by customizing the form or client/server-side script.

Thanks in advance