Validation of Work Order Line Fields During Record Creation or Edit in User Event Script

/**  * @NApiVersion 2.1  * @NScriptType UserEventScript  */ define([‘N/error’],     /**      * @param{error} error      */     (error) => {         “use strict”;         /**          * Defines the function definition that is executed before record is submitted.      … Continue reading Validation of Work Order Line Fields During Record Creation or Edit in User Event Script

Validation of file size while uploading using JavaScript

We can implement file size validation by checking file size before uploading using Javascript. For eg: If we don’t allow uploading a file more than 4MB or less than 2MB, we could use validation to check that the file the user has chosen follows the given requirements and if it doesn’t, give them a message.… Continue reading Validation of file size while uploading using JavaScript

Set Minimum and Maximum Character Length of Custom Zip Code Field Using Workflow

Setting a maximum character length on a Free-Form Text field can be configured under the Validation & Defaulting tab of the field setup, but setting a minimum character length is currently not an option. As a workaround, create a workflow that will return a user error if a field’s minimum character length is not met.… Continue reading Set Minimum and Maximum Character Length of Custom Zip Code Field Using Workflow

How to validate a model and the input provided by user using backbone js

Description It validates the model and input provided by the user. If the input is invalid, it returns a specified error message or if the input is valid, it doesn’t specify anything and simply displays the result.Syntax:model.validate(attributes,options) Parameters:attributes − These attributes define the property of a model.options − It includes true as an option to validate the… Continue reading How to validate a model and the input provided by user using backbone js

Case pack quantity updation with the sales order line quantity

Requirement: In the sales orders, we can enter any number of item line quantities. But from the client business perspective, they need to control the quantity based on the item case pack. The quantity should be multiples of the case pack number and if the quantity is not a case pack multiple we need to… Continue reading Case pack quantity updation with the sales order line quantity