Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Set Field Value based on other fields using formula
CONTEXT: For each of the customer at our company, we want to populate a "revenue target" field which depends on other fields the end-user is inputting (e.g. if the customer is a national chain, which services we are providing to them).
For the more simple calculations, I have been using a workflow and set field value action (before record submit) and using CASE WHEN statements as a formula. For example,
Revenue Target=CASE WHEN {custrecord52} = 'National Chain' THEN 7500
WHEN {custrecord52} = 'Regional Chain' THEN 5750
WHEN {custrecord52} = 'Independent' THEN 4000
ELSE 0
END
QUESTIONS: I have three main questions.
- How can I do something similar for client triggers like before user submit (which according to this documentation requires a JavaScript formula: